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 compiler error with non type template parameter


I get the following error:

kayak-~/cc $ /usr/local/util/packages/egcs/bin/g++ bug-egcs.cc
bug-egcs.cc:7: Internal compiler error.
bug-egcs.cc:7: Please submit a full bug report to
`egcs-bugs@cygnus.com'.
kayak-~/cc $ < bug-egcs.cc
template <int B> // int or bool
class foo;

template <class U>
class bar
{
  typedef foo<(U::id > 0)> foobar;
};
kayak-~/cc $ /usr/local/util/packages/egcs/bin/g++ -v
Reading specs from
/usr/local/util/packages/egcs-040698/lib/gcc-lib/sparc-sun-solaris2.5/egcs-2.91.34/specs
gcc version egcs-2.91.34 19980604 (gcc2 ss-980502 experimental)

My C++ code is correct IMO.

-- 

Valentin Bonnard                mailto:bonnardv@pratique.fr
info about C++/a propos du C++: http://pages.pratique.fr/~bonnardv/


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