diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-12 00:26:39 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-12 00:26:39 +0000 |
commit | 66a0bac0ab2f046cccf86d68c26f15cc66b94825 (patch) | |
tree | e8f2a57a999cd544124fd9b8e1410f55c4e85e82 /gcc/cp/semantics.c | |
parent | ba839c1ffedc74524ed1769527b1c44ded456800 (diff) | |
download | gcc-66a0bac0ab2f046cccf86d68c26f15cc66b94825.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122829 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r-- | gcc/cp/semantics.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index f63ed2f47f7..e016b0a40de 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) { |