This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] C++ ICE in check_for_out_of_scope_variable


On Tue, 11 May 2004 15:52:29 -0600 (MDT), Roger Sayle <roger@eyesopen.com> wrote:

> 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.

lookup/forscope2.C, perhaps.

The patch is OK.

Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]