C++ PATCH for c++/42655 (wrong type for !x)
Jason Merrill
jason@redhat.com
Thu Jan 14 20:21:00 GMT 2010
The underlying problem here is that invert_truthvalue_loc is making the
assumption that the type of its argument is the right type for the
result. We could strip cv quals there, but it's simple enough to strip
them in the front end first, by making rvalue conversions drop cv quals
as they ought.
Tested x86_64-pc-linux-gnu, applied to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 42655.patch
Type: text/x-patch
Size: 1058 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100114/9dfd2af0/attachment.bin>
More information about the Gcc-patches
mailing list