name-lookup.c (check_for_out_of_scope_variable): Avoid ICE by returning when TREE_TYP...
authorRoger Sayle <sayle@gcc.gnu.org>
Sat, 22 May 2004 13:56:19 +0000 (13:56 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Sat, 22 May 2004 13:56:19 +0000 (13:56 +0000)
commitae5cbc332f60a4f9bcca56c4739410c9b2d3abf9
treef4a140dd0b5dd33ca49fc912aca01dccd68a2b20
parentb7e6a6b3f511cc8aabb80a4460c417fcac90c2e7
name-lookup.c (check_for_out_of_scope_variable): Avoid ICE by returning when TREE_TYPE is error_mark_node.

* name-lookup.c (check_for_out_of_scope_variable): Avoid ICE by
returning when TREE_TYPE is error_mark_node.
* typeck.c (require_complete_type): Return error_mark_node if
value's type is an error_mark_node.

* g++.dg/lookup/forscope2.C: New test case.

From-SVN: r82133
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/forscope2.C [new file with mode: 0644]