[patch, c++] Patch for PR c++/35109

Jason Merrill jason@redhat.com
Fri Jan 9 22:19:00 GMT 2009


Steve Ellcey wrote:
> I am not sure the comment is wrong, it is just a question of what to do
> when faced with an illegal program.  Currently we ICE and with my change
> we return NULL which allows the compiler to generate error messages.

Yes, I agree with that change.  But in this case we found a hidden name 
and we aren't in a local class, so the comment "A non namespace-scope 
binding can only be hidden if we are in a local class" is not quite 
right.  Rather, it can only be hidden in the presence of a local class, 
but it can be found by lookups outside the local class, as in the testcase.

Jason



More information about the Gcc-patches mailing list