https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100918

Christian Prochaska <christian.procha...@genode-labs.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |christian.prochaska@genode-
                   |                            |labs.com

--- Comment #7 from Christian Prochaska <christian.procha...@genode-labs.com> 
---
Since the commit above the following test fails. Is this correct?

class T1 { };
class T2 { };

template <typename T>
class A { };

class B : A<T1> { };

class C : B
{
        class D : A<T2> { };
};

test.cc:11:19: error: ‘class A<T1> A<T1>::A’ is private within this context
   11 |         class D : A<T2> { };
      |                   ^~~~~
test.cc:7:7: note: declared private here
    7 | class B : A<T1> { };
      |       ^

When class B is left out, the error does not occur:

class T1 { };
class T2 { };

template <typename T>
class A { };

class C : A<T1>
{
        class D : A<T2> { };
};

Reply via email to