This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |