Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 4 years ago

Language

C++

Compiler

gcc HEAD 11.0.0 20201121 (experimental)

Options
Warnings
Don't Use Boost
C++2a
no pedantic

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 {}; };
      |                 ^
Exit Code:
1