[PATCH] C++ ICE in check_for_out_of_scope_variable
Roger Sayle
roger@eyesopen.com
Tue May 11 23:45:00 GMT 2004
On Tue, 11 May 2004, Roger Sayle wrote:
> The following patch is a fix for a g++ ICE-on-invalid that I've just
> bumped into on mainline.
>
> iter.h:281: error: `_ptrs' was not declared in this scope
> iter.h:284: internal compiler error: tree check: expected class 't', have
> 'x' (error_mark) in check_for_out_of_scope_variable, at cp/name-lookup.c:1148
>
> Reducing a dejagnu testcase from the proprietary sources would be
> painful.
Very many thanks to Wolfgang Bangerth for volunteering to reduce the
8,000 lines of my original preprocessed source to the following:
struct S {
void foo() {
for (_ptr; ;) {}
_ptr = 0;
}
};
If the C++ front-end reviewer of my patch could recommend a name for
this testcase, I'll happily add it to testsuite/g++.dg when I commit
my fix for this ICE.
Roger
--
More information about the Gcc-patches
mailing list