[cfe-dev] EnumConstantDecl is added to EnumDecl twice

Douglas Gregor dgregor at apple.com
Thu Jan 8 12:49:41 PST 2009


On Jan 8, 2009, at 9:52 AM, Douglas Gregor wrote:
> Stepping back to the comment that the enumerator is stored in two
> DeclContexts: we should be able to remove the addDecl and
> setLexicalDeclContext calls after the FIXME near line 3489 of
> SemaDecl.cpp, because transparent DeclContexts should already cope
> with this case. I actually meant to make that change as part of the
> transparent DeclContext patch, but it didn't seem to happen :)

FWIW, this code is gone now, and transparent declcontexts are handling  
name lookup for enumerators.

	- Doug



More information about the cfe-dev mailing list