Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] template type alias not resolvable from template subclass

On Monday 02 Sep 2013 12:13:06 Corbat Thomas wrote:

> Hi Michi

>

> I expect this to be occurring due to some resolution issue of the template alias. It might have the same cause as Bug 416280<https://bugs.eclipse.org/bugs/show_bug.cgi?id=416280> - Name resolution problem with alias template.

> You could add your case to this bug. At least the name would fit the problem you discovered.

I did that ....

thanks a lot

>

> Regards

> Thomas

>

>

>

> From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of scalpel4k

> Sent: Montag, 2. September 2013 12:22

> To: CDT Mailing List

> Subject: [cdt-dev] template type alias not resolvable from template subclass

>

>

> Hallo guys,

>

>

>

> I have the following situation:

>

>

>

> template<typename _T1_>

>

> struct A {

>

>

>

> template<typename _T2_>

>

> using Buffer = SomeOtherClass<_T2_>

>

>

>

> };

>

>

>

> struct B : public A<char> {

>

>

>

> Buffer<int> buf; // CODAN reports resolution error

>

>

>

> };

>

>

>

> The problem only appears when B is subclassing a class template and the alias itself is a template. Has that been reported yet, or should I open a new bug report?

>

> I might mention that this compiles just fine.

>

>

>

> bye Michi


Back to the top