[Bug c++/30721] ICE on invalid template code

v dot haisman at sh dot cvut dot cz gcc-bugzilla@gcc.gnu.org
Tue Feb 6 21:36:00 GMT 2007



------- Comment #1 from v dot haisman at sh dot cvut dot cz  2007-02-06 21:36 -------
(In reply to comment #0)
>[...]
> logout::wilx:~/tmp> g++42 -o ice ice.cxx
> ice.cxx:14: internal compiler error: in import_export_decl, at cp/decl2.c:1956
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://gcc.gnu.org/bugs.html> for instructions.
>[...]
I submitted wrong error message, this is the right one:

logout::wilx:~/tmp> g++42 -o goezzi goezzi.cxx
goezzi.cxx: In member function 'const char* const
Table<Numeric>::operator[](Numeric) [with Numeric = funky]':
goezzi.cxx:19:   instantiated from 'const Table<funky>::Tableitem
Table<funky>::entries [5]'
goezzi.cxx:19:   instantiated from 'const char* const
Table<Numeric>::operator[](Numeric) [with Numeric = funky]'
goezzi.cxx:41:   instantiated from here
goezzi.cxx:19: internal compiler error: in instantiate_decl, at cp/pt.c:12090
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30721



More information about the Gcc-bugs mailing list