https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85396
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2018-04-18 Component|libstdc++ |c++ Ever confirmed|0 |1 --- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- Also works fine at https://godbolt.org/g/xfSvy5 with: GNU C++11 (crosstool-NG crosstool-ng-1.23.0) version 6.3.0 (arm-unknown-linux-gnueabi) So this might be due to a patch backported to Debian's GCC, and would need to be reported to Debian. It's certainly not a libstdc++ bug because the preprocessed source compiles fine on i686-linux. (In reply to microprogs from comment #0) > // C++11: ERROR, cannot compile > //g++ -std=c++11 -o test test.cpp > // > // C++14: OK > //g++ -std=c++14 -o test test.cpp > // > // old C++: OK > //g++ -o test test.cpp N.B. this is not "old C++" this is -std=gnu++14, because that's the default in GCC 6.x