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

Douglas Gregor dgregor at apple.com
Tue Sep 14 08:40:12 PDT 2010


On Sep 14, 2010, at 8:35 AM, Ken Dyck wrote:

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

Yes, please!

	- Doug



More information about the cfe-dev mailing list