Re: [PATCH v2] Fix PR56480 aka DR374. Allow explicit specialization in enclosing namespace.

2014-11-02 Thread Jason Merrill
On 11/02/2014 09:15 AM, Markus Trippelsdorf wrote: + if (cxx_dialect < cxx11) + { + permerror (input_location, "specialization of %qD in different " +"namespace", tmpl); + permerror (input_location, " from definition of %q+#D", tmpl); + } +

[PATCH v2] Fix PR56480 aka DR374. Allow explicit specialization in enclosing namespace.

2014-11-02 Thread Markus Trippelsdorf
(Fixed g++.dg/template/spec25.C issue. Sorry for the churn.) DR374: http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#374 allows explicit specialization of templates in the enclosing namespace. Because this idiom is currently already accepted with -fpermissive, the fix is easy: Just ski