Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 6 years ago

Language

C++

Compiler

gcc 7.3.0

Options
Warnings
Don't Use Boost
C++17
-pedantic-errors

Author

anonymous

almost 6 years ago

$ g++ prog.cc -Wall -Wextra -std=c++17 -pedantic-errors
prog.cc:6:20: error: conflicting declaration 'void (A::* A::pmf)()'
 void (A::* A::pmf)() = &A::g;
                    ^
prog.cc:3:20: note: previous declaration as 'void (A::* A::pmf)() noexcept'
   static void (A::*pmf)() throw ();
                    ^~~
prog.cc:6:20: error: declaration of 'void (A::* A::pmf)() noexcept' outside of class is not definition [-fpermissive]
 void (A::* A::pmf)() = &A::g;
                    ^
Exit Code:
1