http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52962
Bug #: 52962
Summary: Column number incorrect in error
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: [email protected]
ReportedBy: [email protected]
#define M1(x, y, z) y();
#define M2(x, y, z) M1(x, y, z)
void test() {
M2(a, b, c);
}
/* ===== Clang
macros1.cpp:4:9: error: use of undeclared identifier 'b'
M2(a, b, c);
^
macros1.cpp:2:27: note: expanded from macro 'M2'
#define M2(x, y, z) M1(x, y, z)
^
macros1.cpp:1:21: note: expanded from macro 'M1'
#define M1(x, y, z) y();
^
1 error generated.
================ */