[Bug c++/39444] ICE caused by default template argument

tortoise_74 at yahoo dot co dot uk gcc-bugzilla@gcc.gnu.org
Thu Mar 12 18:34:00 GMT 2009



------- Comment #3 from tortoise_74 at yahoo dot co dot uk  2009-03-12 18:34 -------
I should point out (as it is not obvious to the uninitiated) that this may not
be legal C++ as "A string literal cannot be used as a template argument". 
String literals have internal linkage. So string arguments can only be used if
they are declared extern.

The bug might be that gcc is not outputting this message but instead an ICE or
something about the ABI.

However, a std::string is not the same as a char* so a language lawyer might be
needed here. The bugs manifest as if the two are identical. 


-- 


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



More information about the Gcc-bugs mailing list