[cfe-commits] [PATCH] Fix handling of dependent nested namespace specifiers in UsingDecls during template instantiation

Douglas Gregor dgregor at apple.com
Wed Sep 29 11:01:46 PDT 2010


On Sep 24, 2010, at 6:10 AM, Martin Vejnár wrote:

> Hi, this patch fixes what is written in subject. In particular, the
> following program
> 
>    template <typename T> struct t {
>      struct s1 {
>        T f1();
>      };
>      struct s2 : s1 {
>        using s1::f1;
>      };
>    };
> 
>    template struct t<int>;
> 
> is now parsed without errors. Originally, no substitution was performed on
> `s1` in the UsingDecl, which resulted in an error (t<T>::s1 is not a base
> class of t<int>::s2).
> 
> A test case is included as well.

Looks great, thanks! I've committed this as r115051.

	- Doug





More information about the cfe-commits mailing list