https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69391
--- Comment #2 from mail at bobah dot net --- And if I make this change it works even with '-ftrack-macro-expansion=0' - #define LINE STR(__LINE__) STR(__LINE__) + #define LINE() STR(__LINE__) STR(__LINE__) - std::cout << LINE << "\n"; + std::cout << LINE() << "\n";