egcs 1.1 internal error 383 with 'using myclass::mytypedef;'

Priem, Gregory L gregory.l.priem@intel.com
Fri Nov 20 08:39:00 GMT 1998


hi.

i was testing some sample code from a project i currently use microsoft vc++
for
(and which i would _really_ like to use something else on), and get the
following error:

C:\TEMP>g++ temp.cpp
temp.cpp:15: Internal compiler error 383.
temp.cpp:15: Please submit a full bug report to `egcs-bugs@cygnus.com'.

i am using the mingw32 port of egcs 1.1, on an windows nt4 (server) sp3
system
[pentium 150, 144M ram]:

C:\TEMP>g++ --version
egcs-2.91.57

the code snippet which generates this error:

--- start of code ---
#include <vector>
#include <string>

class joey {
public:
  typedef vector<string> SVec;
};

void func1(void) {

  joey::SVec myVec;
  myVec.push_back("hi");
}

using joey::SVec; // this line causes internal error 383

void func2(void) {
  joey::SVec myVec;
  myVec.push_back("hi");
}
--- end of code ---

i have also tried 'using typename joey::SVec;', but that generated the
error:
C:\TEMP>g++ temp.cpp
temp.cpp:15: parse error before `typename'

i believe that my usage of 'using' is valid c++, but i cannot seem to make
heads
nor tails of my copy of the iso standard document. in func1, direct usage of
the
typename typedef'd in the class joey is accepted, so i assume that part is
valid.

-greg priem



More information about the Gcc-bugs mailing list