Open Quuxplusone opened 3 years ago
Surprisingly, i can't reproduce this one. Godbolt uses libstdc++ which i don't have, and also godbolt doesn't seem to produce sane preprocessed files when fed the -E option (it filters a lot of stuff that makes sense to filter in normal compiler stdout). Regardless of whether i take my own libc++ or i try to correct errors in godbolt's preprocessed file until it compiles, i don't see the buggy warning. Andrei, do you happen to have a preprocessed file of your example?
Attached a_preprocessed.cpp
(715176 bytes, text/x-c++src): Preprocessed example
I tried with libc++, too, and can confirm that it's not reproduced with it.
a_preprocessed.cpp
(715176 bytes, text/x-c++src)