Language
C++
Compiler
gcc 7.3.0
Options
Warnings
Don't Use Boost
C++17
-pedantic-errors
$ g++ prog.cc -Wall -Wextra -std=c++17 -pedantic-errors
Exit Code:
1
Author
anonymous
almost 6 years ago
C++
gcc 7.3.0
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;
^