[Bug preprocessor/118229] __LINE__ value incorrect in long expanded macro

2024-12-28 Thread edisonhello at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118229 --- Comment #5 from Edison Chen --- (In reply to Andrew Pinski from comment #1) > https://stackoverflow.com/questions/72700965/bug-in-c-g-preprocessor-with- > line-macro Oh, I never found this post when I was searching lol. I'm sorry that I sti

[Bug preprocessor/118229] __LINE__ value incorrect in long expanded macro

2024-12-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118229 --- Comment #4 from Andrew Pinski --- Note line most likely should not be used here anyways since line could be the same between two different uses of these macros. __COUNTER__ is the better macro.

[Bug preprocessor/118229] __LINE__ value incorrect in long expanded macro

2024-12-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118229 --- Comment #3 from Andrew Pinski --- (In reply to Andrew Pinski from comment #2) > Hmm > https://github.com/boostorg/concept_check/blob/develop/include/boost/ > concept_check/general.hpp. says the file has less than 93 lines ... Looking at the

[Bug preprocessor/118229] __LINE__ value incorrect in long expanded macro

2024-12-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118229 --- Comment #2 from Andrew Pinski --- Hmm https://github.com/boostorg/concept_check/blob/develop/include/boost/concept_check/general.hpp. says the file has less than 93 lines ...

[Bug preprocessor/118229] __LINE__ value incorrect in long expanded macro

2024-12-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118229 --- Comment #1 from Andrew Pinski --- https://stackoverflow.com/questions/72700965/bug-in-c-g-preprocessor-with-line-macro