[patch] Use -std options to test C99 classification macros in C++

Jonathan Wakely jwakely@redhat.com
Fri Jan 8 14:59:00 GMT 2016


The 26_numerics/headers/cmath/c99_classification_macros_c++.cc test
was written for C++98 mode (we have a separate test that uses
-std=gnu++11) but with the GCC 6 switch to -std=gnu++14 by default we
now check it in C++14 mode. That's pointless, as the relevant parts of
<cmath> are equivalent in C++11 and C++14. This adds -std=gnu++98 to
restore testing the right mode.

I've renamed c99_classification_macros_c++.cc and
c99_classification_macros_c++0x.cc to *c++98.cc and *c++11.cc
respectively, to make clear they are for specific language modes.

Tested x86_64-linux, committed to trunk.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 10843 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20160108/01914f9a/attachment.bin>


More information about the Libstdc++ mailing list