[cfe-dev] Better type-specifier representation

Daniel Dunbar daniel at zuster.org
Sat Sep 13 16:20:40 PDT 2008


> x = sizeof(int[y+10]);  // who owns "y+10" ?
>
> How about having the TypeSpecifier node own these expressions ?
> sizeof(int[y+10]) -> sizeof(TypeSpecifier) -> TypeSpecifier owns "y+10"

Yes, this is exactly what I think should happen. I said
declaration but really the specifier is the right place.

 - Daniel



More information about the cfe-dev mailing list