[Bug c++/90126] gcc can not correctly deal with its own preprocessed output

2019-04-17 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90126 Richard Biener changed: What|Removed |Added Keywords||diagnostic Status|UNCONFIRM

[Bug c++/90126] gcc can not correctly deal with its own preprocessed output

2019-04-17 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90126 --- Comment #2 from Jonathan Wakely --- tl;dr the preprocessor should only be used once. You're running it twice on the same input.

[Bug c++/90126] gcc can not correctly deal with its own preprocessed output

2019-04-17 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90126 --- Comment #1 from Jonathan Wakely --- I don't think this is a bug. If you tell gcc that the preprocessed output is preprocessed output, then the behaviour is consistent. So either: g++ -E namespace_anonymous_1_min_ok.cpp > temp_namespace_anon