Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 5 years ago

Language

C++

Compiler

gcc HEAD 11.0.0 20200918 (experimental)

Options
Warnings
Boost 1.73.0
C++2a(GNU)
no pedantic
Raw compiler options
-std=c++20

Author

anonymous

almost 5 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=gnu++2a -std=c++20
prog.cc:8:14: error: explicit specialization in non-namespace scope 'struct Demo'
    8 |     template<> struct Nop{};
      |              ^
prog.cc:8:23: error: template argument required for 'struct Nop'
    8 |     template<> struct Nop{};
      |                       ^~~
Exit Code:
1