[Bug c++/56480] Explicit specialization in a namespace enclosing the specialized template
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Dec 1 19:54:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56480
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
Target Milestone|5.5 |7.0
--- Comment #11 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Sun Nov 13 06:51:23 2016
New Revision: 242348
URL: https://gcc.gnu.org/viewcvs?rev=242348&root=gcc&view=rev
Log:
DR 374 - specialization in outer namespace
PR c++/56840
* pt.c (check_specialization_namespace): Allow any enclosing
namespace.
(check_unqualified_spec_or_inst): New.
(check_explicit_specialization): Call it.
* parser.c (cp_parser_elaborated_type_specifier)
(cp_parser_class_head): Call it.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/explicit-inst1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/decl.c
trunk/gcc/cp/name-lookup.c
trunk/gcc/cp/parser.c
trunk/gcc/cp/pt.c
More information about the Gcc-bugs
mailing list