https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64666
--- Comment #5 from Harald van Dijk <harald at gigawatt dot nl> --- (In reply to Jakub Jelinek from comment #4) > Just use -pedantic-errors if you want strict language conformance? -std=* -pedantic is supposed to be enough to get GCC to conform to the specified standard (the standards pretty much never require an error), but anyway, even with -std=c++14 -pedantic-errors, no message at all is given for the program in my earlier comment.