[Bug c++/52036] C++11 allows template parameters to have internal linkage
richard-gccbugzilla at metafoo dot co.uk
gcc-bugzilla@gcc.gnu.org
Fri Aug 9 23:54:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52036
Richard Smith <richard-gccbugzilla at metafoo dot co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |richard-gccbugzilla@metafoo
| |.co.uk
--- Comment #8 from Richard Smith <richard-gccbugzilla at metafoo dot co.uk> ---
C++11 [temp.arg.nontype]p2 has another similar testcase, which GCC fails on:
template<class T, const char* p> class X {
/* ... */
};
X<int, "Studebaker"> x1; // error: string literal as template-argument
const char p[] = "Vivisectionist";
X<int,p> x2; // OK
More information about the Gcc-bugs
mailing list