------- Comment #3 from simonb at gcc dot gnu dot org  2007-06-18 22:09 -------
Subject: Bug 31923

Author: simonb
Date: Mon Jun 18 22:09:14 2007
New Revision: 125829

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=125829
Log:
gcc/cp/ChangeLog
2007-06-15  Simon Baldwin <[EMAIL PROTECTED]>

        PR c++/31923
        * parser.c (cp_parser_single_declaration): Added check for storage
        class other than sc_none in parsed declaration, and a flag to indicate
        if the call is part of an explicit template specialization parse.
        * (cp_parser_explicit_specialization): Specialization check flag added
        to call to cp_parser_single_declaration(), set true.
        * (cp_parser_template_declaration_after_export): Specialization check
        flag added to call to cp_parser_single_declaration(), set false.
        * pt.c (check_explicit_specialization): Added code to copy visiblity
        and linkage from the templated function to the explicit specialization.

gcc/testsuite/ChangeLog
2007-06-15  Simon Baldwin <[EMAIL PROTECTED]>

        PR c++/31923
        * g++.dg/template/error25.C: New.
        * g++.dg/template/spec35.C: New.


Added:
    trunk/gcc/testsuite/g++.dg/template/error25.C
    trunk/gcc/testsuite/g++.dg/template/spec35.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31923

Reply via email to