[cfe-dev] Enum identifier hiding in function prototype scope

Ken Dyck Ken.Dyck at onsemi.com
Tue Sep 14 08:35:57 PDT 2010


On Tuesday, September 14, 2010 11:11 AM, Douglas Gregor wrote:
> 
> On Sep 14, 2010, at 6:04 AM, Ken Dyck wrote:
> 
> > Can any language lawyers comment on whether this is really a
> > non-conformance against the standards?
> 
> Yes, it's a Clang bug. We have numerous
> problems with definitions in prototype scope.
> This one is essentially captured by:
> 
> 	http://llvm.org/bugs/show_bug.cgi?id=5464

That bug deals specifically with structs. Would it be worthwhile to
generalize the title to include all identifiers, and add a note about
enums?

-Ken




More information about the cfe-dev mailing list