aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/semantics.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2007-03-12 00:26:39 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2007-03-12 00:26:39 +0000
commit3c38f0ff2e34900a89268b0880c9b8e33cdce715 (patch)
treee8f2a57a999cd544124fd9b8e1410f55c4e85e82 /gcc/cp/semantics.c
parentefb84847dfc11e5fb694c984f5421562bcc200f8 (diff)
downloadgcc-3c38f0ff2e34900a89268b0880c9b8e33cdce715.zip
gcc-3c38f0ff2e34900a89268b0880c9b8e33cdce715.tar.gz
gcc-3c38f0ff2e34900a89268b0880c9b8e33cdce715.tar.bz2
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
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r--gcc/cp/semantics.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c
index f63ed2f..e016b0a 100644
--- a/gcc/cp/semantics.c
+++ b/gcc/cp/semantics.c
@@ -2927,7 +2927,7 @@ finish_typeof (tree expr)
return type;
}
- type = TREE_TYPE (expr);
+ type = unlowered_expr_type (expr);
if (!type || type == unknown_type_node)
{