------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-04-08 
21:23 -------
Subject: Bug 20905

CVSROOT:        /cvs/gcc
Module name:    gcc
Branch:         gcc-4_0-branch
Changes by:     [EMAIL PROTECTED]       2005-04-08 21:23:26

Modified files:
        gcc/cp         : ChangeLog parser.c 
        gcc/testsuite  : ChangeLog 
Added files:
        gcc/testsuite/g++.dg/parse: cond2.C 

Log message:
        PR c++/20905
        * parser.c (cp_parser_type_specifier_seq): Add is_condition
        parameter.
        (cp_parser_new_type_id): Pass it.
        (cp_parser_condition): Likewise.
        (cp_parser_conversion_type_id): Likewise.
        (cp_parser_type_id): Likewise.
        (cp_parser_type_specifier_seq): In a condition, do not allow
        invalid type-specifier combinations.
        (cp_parser_exception_declaration): Adjust call to
        cp_parser_type_specifier_seq.
        
        PR c++/20905
        * g++.dg/parse/cond2.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.4648.2.30&r2=1.4648.2.31
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.319.2.5&r2=1.319.2.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.118&r2=1.5084.2.119
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/cond2.C.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1



-- 


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

Reply via email to