This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/31038] [4.1/4.2 regression] ICE with C99 style compound literal vs templates vs instiaiontion



------- Comment #5 from mmitchel at gcc dot gnu dot org  2007-03-12 01:52 -------
Subject: Bug 31038

Author: mmitchel
Date: Mon Mar 12 01:52:45 2007
New Revision: 122830

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122830
Log:
        PR c++/31038
        * parser.c (cp_parser_postfix_expression): Disallow compound
        literals in constant expressions.

        PR c++/30328
        * semantics.c (finish_typeof): Use unlowered_expr_type.

        PR c++/31038
        * g++.dg/template/complit2.C: New test.

        PR c++/30328
        * g++.dg/ext/bitfield1.C: New test.

Added:
    branches/gcc-4_2-branch/gcc/testsuite/g++.dg/ext/bitfield1.C
    branches/gcc-4_2-branch/gcc/testsuite/g++.dg/template/complit2.C
Modified:
    branches/gcc-4_2-branch/gcc/cp/ChangeLog
    branches/gcc-4_2-branch/gcc/cp/parser.c
    branches/gcc-4_2-branch/gcc/cp/semantics.c
    branches/gcc-4_2-branch/gcc/testsuite/ChangeLog


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]