This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Internal Comiler Error in egcs-2.91.61 19990216



Got an internal compiler error.
All files generated by egcs -v --save-temps incomperror.cc (standard
error output is in intcomperror.out) are in intcomperr.tgz.

Here is the source code so you don't have to unpack all that if you have
seen this:

template<bool cond>
struct BeezleBub  { typedef char evil[cond ? 1 : -1]; }

The char doesn't matter.  I get an error for int or any other
user-defined type.
( Nifty little compile time assert, huh?  comp.lang.c++.moderated is a
great news group!)


Long live egcs!

Peter
phigley@surfree.com

intcomperr.tgz


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]