http://llvm.org/bugs/show_bug.cgi?id=15012
Douglas Gregor <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Douglas Gregor <[email protected]> 2013-01-21 21:46:55 CST --- C++11 14.5.5 [temp.class.spec]p5: A class template partial specialization may be declared or redeclared in any namespace scope in which its definition may be defined (14.5.1 and 14.5.2). (It's 14.5.5p6 in C++98/03) Of course, those paragraphs aren't actually that useful. The general rule here is C++ 8.3 [dcl.meaning]p1, which differs between C++98/03 (which forbids (partial) specializations from outside the namespace *unless* they were first declared in the namespace) and C++11 (which allows (partial) specializations from outside the namespace always). GCC is apparently not implementing the C++11 tweak to these rules yet. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ LLVMbugs mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
