Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 6 years ago

Language

C++

Compiler

gcc HEAD 9.0.0 20190101 (experimental)

Options
Warnings
Boost 1.68.0
C++2a(GNU)
no pedantic

Author

anonymous

over 6 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/gcc-head/include -std=gnu++2a
prog.cc:9:6: error: redefinition of 'void g(Ming)'
    9 | void g(const Ming) {}  // ERROR, same exact function signature
      |      ^
prog.cc:8:6: note: 'void g(Ming)' previously defined here
    8 | void g(Ming) {}
      |      ^
Exit Code:
1