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
Boost 1.73.0
C++2a(GNU)
no pedantic

Author

anonymous

over 4 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=gnu++2a
prog.cc: In function 'void foo() [with T = A::B]':
prog.cc:13:17: error: 'class A::B' is private within this context
   13 | template<> void foo<A::B>() {}
      |                 ^~~~~~~~~
prog.cc:10:17: note: declared private here
   10 | class A { class B {}; };
      |                 ^
Exit Code:
1