[PATCH] PR13236 - Microsoft compatibility: support __super specifier to access members of base classes
popizdeh at gmail.com
Mon Aug 11 23:09:52 PDT 2014
I've gone full circle on this, Richard suggested resolving 'super' right away. I consumed tokens and annotated the trailing identifier as either type or primary expression. It was so simple and worked perfectly, until dependent bases showed up...
I started hacking and soon enough ended up with something that looks very much like the original patch with few minor changes. NNS now stores the CXXRecordDecl of the class 'super' appeared in, this is replaced by appropriate instantiation in case of templates. This makes us handle the 'derive from template parameter' case just fine, unlike msvc, but I'm fine with it. I guess we could produce an error like them if we wanted but I don't see the point.
I played with printfs to check if the right overload was selected but having tests would be nice. Do I emit IR, dump ast, or to something else?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 33395 bytes
Desc: not available
More information about the cfe-commits