This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Internal compiler error with non type template parameter
- To: egcs-bugs at cygnus dot com
- Subject: Internal compiler error with non type template parameter
- From: Valentin Bonnard <bonnardv at pratique dot fr>
- Date: Sun, 07 Jun 1998 19:34:59 +0200
- Organization: Ecole Normale Superieure, Paris, France
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/