[cfe-commits] [PATCH] Don't diagnose missing typename at point of definition in case when injected-class-name type has dependant bases.

Eli Friedman eli.friedman at gmail.com
Sun Dec 27 22:07:48 PST 2009


On Sun, Dec 27, 2009 at 7:35 PM, Piotr Rak <piotr.rak at gmail.com> wrote:
> Hi,
>
> I've not followed changes in clang recently, thus not I am not sure if
> it is quite correct.
> This one allows compile <tr1/unordered_map> header from gcc-4.1.2.

I think the code is invalid.  In the given testcase, "typename
B::type" isn't a dependent name because "B" refers to the current
instantiation (in the sense of [temp.dep.type]).  Therefore, it must
be resolved immediately.  That said, the standard could be clearer...

-Eli



More information about the cfe-commits mailing list