[Bug c++/27884] [4.1 regression] bogus error: invalid use of 'register' in linkage specification

mmitchel at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Jun 16 23:10:00 GMT 2006



------- Comment #9 from mmitchel at gcc dot gnu dot org  2006-06-16 23:09 -------
Subject: Bug 27884

Author: mmitchel
Date: Fri Jun 16 23:09:23 2006
New Revision: 114731

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114731
Log:
        PR c++/27884
        * decl.c (have_extern_spec): Remove.
        (start_decl): Do not check have_extern_spec.
        (start_function): Likewise.
        * cp-tree.h (have_extern_spec): Remove.
        * parser.c (cp_parser_linkage_specification): Don't set
        have_extern_spec.
        (cp_parser_init_declarator): Likewise.
        (cp_parser_parameter_declaration): Do not treat parameters as
        within the scope of an unbraced linkage specification.
        PR c++/27884
        * g++.dg/parse/linkage2.C: New test

Added:
    branches/gcc-4_1-branch/gcc/testsuite/g++.dg/parse/linkage2.C
Modified:
    branches/gcc-4_1-branch/gcc/cp/ChangeLog
    branches/gcc-4_1-branch/gcc/cp/cp-tree.h
    branches/gcc-4_1-branch/gcc/cp/decl.c
    branches/gcc-4_1-branch/gcc/cp/parser.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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



More information about the Gcc-bugs mailing list