https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118229
--- Comment #5 from Edison Chen <edisonhello at hotmail dot com> --- (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 still can't make the sample smaller. Deleting any line from my current code makes the error disappear. (In reply to Andrew Pinski from comment #4) > 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. I can understand that. I will try to send a PR to boost to prevent this issue from happening again. Meanwhile, we can still investigate this issue to find out what's happening.