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); + } + else + check_explicit_instantiation_namespace (tmpl);
In most cases I think DRs should apply to C++98 as well. In this case I think a pedwarn only with -pedantic in C++98 is appropriate. Let's put all the logic in check_.... And add a flag to distinguish between instantiation and specialization.
Jason