https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52962
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic, easyhack Status|UNCONFIRMED |NEW Last reconfirmed| |2015-03-28 Ever confirmed|0 |1 --- Comment #3 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- This has improved a lot, but it is still better in C than in C++: manuel@gcc14:~/test2/221743M/build/gcc$ ~/test1/221745M/build/gcc/cc1 ~/test.c /home/manuel/test.c:4:9: warning: implicit declaration of function ‘b’ [-Wimplicit-function-declaration] M2(a, b, c); ^ /home/manuel/test.c:1:21: note: in definition of macro ‘M1’ #define M1(x, y, z) y(); ^ /home/manuel/test.c:4:3: note: in expansion of macro ‘M2’ M2(a, b, c); ^ manuel@gcc14:~/test2/221743M/build/gcc$ ~/test1/221745M/build/gcc/cc1plus ~/test.c void test() /home/manuel/test.c:1:23: error: ‘b’ was not declared in this scope #define M1(x, y, z) y(); ^ /home/manuel/test.c:2:21: note: in expansion of macro ‘M1’ #define M2(x, y, z) M1(x, y, z) ^ /home/manuel/test.c:4:3: note: in expansion of macro ‘M2’ M2(a, b, c); ^