Namespace internal compiler error in egcs-19980525
Paul Henning
phenning@cs.uiowa.edu
Thu May 28 14:09:00 GMT 1998
A typo in a program exposed this internal compiler error for
egcs-19980525 on i686-pc-linux-gnu:
% cat nsprob2.C
namespace NS1
{
int a;
}
namespace NS2 = NonExistant;
% g++ -c nsprob2.C
nsprob2.C:6: Internal compiler error.
nsprob2.C:6: Please submit a full bug report to `egcs-bugs@cygnus.com'.
This is nsprob2 because I have another problem with namespaces that I
don't have a small enough test program to report yet. Basically,
a program something like:
class A {};
namespace B { typedef A C; }
void f(const vector<A>& v);
is generating an object file containing:
f(vector<C, __default_alloc_template<true, 0> > const &)
Neat trick, eh?
Cheers,
Paul Henning
phenning@cs.uiowa.edu http://www.cs.uiowa.edu/~phenning
More information about the Gcc-bugs
mailing list