Language
C++
Compiler
gcc HEAD 11.0.0 20200908 (experimental)
Options
Warnings
Boost 1.73.0
C++2a(GNU)
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=gnu++2a Exit Code:
1
C++
gcc HEAD 11.0.0 20200908 (experimental)
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=gnu++2a prog.cc:9:14: error: macro "test" requires 2 arguments, but only 1 given
9 | a = test(b); // C4003
| ^
prog.cc:3: note: macro "test" defined here
3 | #define test(a,b) (a+b)
|
prog.cc: In function 'int main()':
prog.cc:9:8: error: 'test' was not declared in this scope
9 | a = test(b); // C4003
| ^~~~