Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 6 years ago

Language

C++

Compiler

gcc HEAD 9.0.1 20190130 (experimental)

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

Author

anonymous

over 6 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/gcc-head/include -std=gnu++2a
prog.cc: In function 'int main()':
prog.cc:9:11: error: call of overloaded 'f(NULL)' is ambiguous
    9 |     f(NULL);
      |           ^
prog.cc:3:6: note: candidate: 'void f(int)'
    3 | void f(int)   { std::cout << "f(int)"; }
      |      ^
prog.cc:4:6: note: candidate: 'void f(void*)'
    4 | void f(void*) { std::cout << "f(void*)"; }
      |      ^
Exit Code:
1