diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2011-02-18 17:22:14 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2011-02-18 17:22:14 +0000 |
commit | 1496e7d67b028d54ed7a2f0507d8c366057fa854 (patch) | |
tree | 36564de1b44b5c667d983aa94522af81ac22c6d0 /gcc/cp | |
parent | 237d62592af737acb7711b78f44304fcd18b3e13 (diff) | |
download | gcc-1496e7d67b028d54ed7a2f0507d8c366057fa854.zip gcc-1496e7d67b028d54ed7a2f0507d8c366057fa854.tar.gz gcc-1496e7d67b028d54ed7a2f0507d8c366057fa854.tar.bz2 |
re PR c++/47795 (internal compiler error: tree check: expected record_type or union_type or qual_union_type, have error_mark in finish_non_static_data_member, at cp/semantics.c:1513)
/cp
2011-02-18 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/47795
* semantics.c (finish_non_static_data_member): Early return if
object is error_mark_node.
/testsuite
2011-02-18 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/47795
* g++.dg/cpp0x/lambda/lambda-ice3.C: New.
From-SVN: r170275
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/cp/semantics.c | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index db9fa89..0f6ece2 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2011-02-18 Paolo Carlini <paolo.carlini@oracle.com> + + PR c++/47795 + * semantics.c (finish_non_static_data_member): Early return if + object is error_mark_node. + 2011-02-18 Dodji Seketeli <dodji@redhat.com> PR c++/47208 diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index 1ad707b..e102ba3 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -1533,6 +1533,9 @@ finish_non_static_data_member (tree decl, tree object, tree qualifying_scope) object = maybe_dummy_object (scope, NULL); } + if (object == error_mark_node) + return error_mark_node; + /* DR 613: Can use non-static data members without an associated object in sizeof/decltype/alignof. */ if (is_dummy_object (object) && cp_unevaluated_operand == 0 |