[cfe-dev] Nested forward declarations of self

Kim Gräsman kim.grasman at gmail.com
Thu Dec 13 22:03:16 PST 2012


On Thu, Dec 13, 2012 at 10:03 PM, Dmitri Gribenko <gribozavr at gmail.com> wrote:
> On Thu, Dec 13, 2012 at 10:13 PM, Kim Gräsman <kim.grasman at gmail.com> wrote:
>>
>> Should it be there?
>
> C++11 [class] p2:
> A class-name is inserted into the scope in which it is declared
> immediately after the class-name is seen. The class-name is also
> inserted into the scope of the class itself; this is known as the
> injected-class-name. [...]

On Fri, Dec 14, 2012 at 4:23 AM, Richard Smith <richard at metafoo.co.uk> wrote:
> On Thu, Dec 13, 2012 at 12:13 PM, Kim Gräsman <kim.grasman at gmail.com> wrote:
>>
>> I'd like to skip over it, any ideas on how I can identify these?
>
> RecordDecl::isInjectedClassName().

Thank you both, that helped!

- Kim




More information about the cfe-dev mailing list