[patch] Alter libstdc++ test to work after c++/67216 fix

Jonathan Wakely jwakely@redhat.com
Tue Aug 18 12:46:00 GMT 2015


With Paolo's fix the use of the safe-bool idiom in this test no longer
compiles in C++11 or C++14. The requirement in TR1 is that it works
"in a boolean context" and p1 == false is not necessarily a boolean
context. Do an explicit conversion to make it valid in all modes.

Tested powerpc64le-linux, committing to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 954 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150818/1ca9a3f7/attachment.bin>


More information about the Gcc-patches mailing list