[Bug preprocessor/69391] Incorrect __LINE__ expansion with -ftrack-macro-expansion=0 on g++5.2

2016-01-20 Thread mail at bobah dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69391 mail at bobah dot net changed: What|Removed |Added Summary|Incorrect __LINE__ |Incorrect __LINE__

[Bug preprocessor/69391] Incorrect __LINE__ expansion with -ftrack-macro-expansion=0 on g++5.2

2016-01-20 Thread mail at bobah dot net
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

[Bug preprocessor/69391] New: Incorrect __LINE__ expansion with -ftrack-macro-expansion=0

2016-01-20 Thread mail at bobah dot net
Priority: P3 Component: preprocessor Assignee: unassigned at gcc dot gnu.org Reporter: mail at bobah dot net Target Milestone: --- The below test program - incorrectly prints "83" on g++ 5.2 with '-ftrack-macro-expansion=0' - correctly prints "