c++/10722: [3.3 regression] ICE (segfault) when specializing with an invalid type
Giovanni Bajo
giovannibajo@libero.it
Sat May 17 09:26:00 GMT 2003
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10722
Another snippet which I assume to show the same bug is:
-----------------------------------------
template <typename DT, typename AT>
struct Foo;
template <>
struct Foo<int>
{
long h;
};
-----------------------------------------
pr10832.cpp:6: error: wrong number of template arguments (1, should be 2)
pr10832.cpp:2: error: provided for `template<class DT, class AT> struct Foo'
pr10832.cpp:7: internal compiler error: Segmentation fault
Please submit a full bug report,
Giovanni Bajo
More information about the Gcc-bugs
mailing list