Project

General

Profile

Bug #1692

charmc Dies on Array Indices with Template Parameters

Added by Nils Deppe 22 days ago. Updated 6 days ago.

Status:
New
Priority:
Normal
Assignee:
Category:
Charmxi
Target version:
-
Start date:
09/26/2017
Due date:
% Done:

0%


Description

If the index to a chare array has template parameters then charmc chokes. A workaround is defining a type alias to the type with the template parameters substituted in. However, it would be nice if this worked directly. Here is a simply CI file that demonstrates the issue:

module Array {
  array [MyIndex<1>] MyArray {
    entry MyArray();
  }
}

The error is:

STDIN:2:14-17: error: invalid construct
  array [MyIndex<1>] MyArray {
             ^^^^
Fatal Error by charmc in directory ./spectre
   Command ../charm/bin/charmxi -orig-file ./dummy.ci returned error code 1
charmc exiting...

History

#1 Updated by Phil Miller 20 days ago

  • Category set to Charmxi

The long-range direction on this is to get away from .ci files entirely, so we don't need to run on the 'parsing C++' treadmill.

If it turns out to be straightforward, we may teach the .ci file parser to handle this in the meantime.

#2 Updated by Eric Bohm 6 days ago

  • Assignee set to Eric Mikida

Also available in: Atom PDF