Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 5 years ago

Language

C++

Compiler

clang 9.0.0

Options
Warnings
Don't Use Boost
C++2a
-pedantic

Author

anonymous

over 5 years ago

$ clang++ prog.cc -Wall -Wextra -std=c++2a -pedantic
prog.cc:5:22: error: inline declaration of 'f' follows non-inline definition
  friend inline void f();
                     ^
prog.cc:1:17: note: previous definition is here
/*inline*/ void f() {}
                ^
1 error generated.
Exit Code:
1