re PR c++/30328 (bit-field: unassemblable assembly code)
authorMark Mitchell <mark@codesourcery.com>
Mon, 12 Mar 2007 00:26:39 +0000 (00:26 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 12 Mar 2007 00:26:39 +0000 (00:26 +0000)
commit3c38f0ff2e34900a89268b0880c9b8e33cdce715
treee8f2a57a999cd544124fd9b8e1410f55c4e85e82
parentefb84847dfc11e5fb694c984f5421562bcc200f8
re PR c++/30328 (bit-field: unassemblable assembly code)

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

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

PR c++/31038
* parser.c (cp_parser_postfix_expression): Disallow compound
literals in constant expressions.

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

From-SVN: r122829
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/bitfield1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/complit2.C [new file with mode: 0644]