Skip to content
Snippets Groups Projects
Commit 6d9bff9f authored by lmillward's avatar lmillward
Browse files

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.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117206 138bc75d-0d04-0410-961f-82ee72b054a4
parent 2ed0bcc0
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment