ipa-cp: Perform operations in the appropriate types (PR 118097)
[gcc.git] / gcc / testsuite / g++.dg / template / access30.C
blobb03a99af1f0642cc77d297fa3ea2ae3166bcfb99
1 // PR c++/41437
2 // { dg-do compile }
4 class A { struct B { B(); }; };
5 template<typename T> void f() { A::B b; } // { dg-error "private" }
6 void g() { f<int>(); }
8 class X { template<typename> struct A{}; };
10 X::A<int> a; // { dg-error "private" }