OSDN Git Service

PR c++/29024
authorlmillward <lmillward@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 Oct 2006 19:31:33 +0000 (19:31 +0000)
committerlmillward <lmillward@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 Oct 2006 19:31:33 +0000 (19:31 +0000)
commitceec99b9a6dcd120ed55e7dfc246d5b7e83cf5a3
treea7b32d64c052d1629ca208252036bb3c64a9f362
parente3625844fba13bd71af4adfd0f326875dc5d36b8
    PR c++/29024
        * cp-tree (struct cp_decl_specifier_seq): Rename to
        conflicting_specifiers_p
        * parser.c (cp_parser_set_storage_class): Set
        conflicting_specifiers_p for the input decl specifier
        if a typedef specifier is present. Rename uses of
        multiple_specifiers_p to conflicting_specifiers_p.
        (cp_parser_decl_specifier_seq) <RID_TYPEDEF>: If a storage
        class specifier has already been set for this declaration,
        set conflicting_specifiers_p to true on the decl_specs.
        * decl.c (grokdeclarator): Rename uses of
        multiple_specifiers_p to conflicting_specifiers_p.

        * g++.dg/parse/typedef8.C: New test.
        * g++.dg/other/mult-stor1.C: Adjust error markers.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117641 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/mult-stor1.C
gcc/testsuite/g++.dg/parse/typedef8.C [new file with mode: 0644]