------- Comment #3 from lmillward at gcc dot gnu dot org 2006-09-25 19:58 ------- Subject: Bug 27667
Author: lmillward Date: Mon Sep 25 19:58:10 2006 New Revision: 117206 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117206 Log: PR c++/27667 * cp-tree.h (begin_specialization): Return bool instead of void. * pt.c (check_specialization_scope): Likwise. Adjust comment. Return false if a specialization isn't permitted in the current scope,. (begin_specialization): Use the return value of check_specialization_scope. * parser.c (cp_parser_explicit_specialization): If begin_specialization returned false, skip the rest of the specialization. * g++.dg/template/spec33.C: New test. * g++.old-deja/g++.pt/spec20.C: Adjust error markers. Added: trunk/gcc/testsuite/g++.dg/template/spec33.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/cp-tree.h trunk/gcc/cp/parser.c trunk/gcc/cp/pt.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.old-deja/g++.pt/spec20.C -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27667