Language
C++
Compiler
gcc HEAD 11.0.0 20201121 (experimental)
Options
Warnings
Don't Use Boost
C++2a
no pedantic
$ g++ prog.cc -Wall -Wextra -std=c++2a
Exit Code:
1
Author
anonymous
over 4 years ago
C++
gcc HEAD 11.0.0 20201121 (experimental)
Author
anonymous
over 4 years ago
$ g++ prog.cc -Wall -Wextra -std=c++2a
prog.cc: In function 'void foo() [with T = A::B]':
prog.cc:14:17: error: 'class A::B' is private within this context
14 | template<> void foo<A::B>() {}
| ^~~~~~~~~
prog.cc:11:17: note: declared private here
11 | class A { class B {}; };
| ^