[Bug c++/35711] bad text in -Wcast-qual warning (forgets volatile)
manu at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Aug 29 03:32:00 GMT 2008
------- Comment #4 from manu at gcc dot gnu dot org 2008-08-29 03:31 -------
(In reply to comment #3)
> (In reply to comment #2)
> > It is almost magic that we only warn for qualifiers.
>
> You can get the same message with an error message too:
Sorry, I meant that it is almost magic that we only given an error/warning when
casting away qualifiers and not for other invalid conversions since the only
thing that we really know at the point of giving the warning/error is that a
conversion was reject.
> As static_cast cannot cast away qualifiers. Also note we (Sony) changed our
> GCC to just say qualifiers instead of constness.
Why such changes are not contributed back to FSF's GCC? I thought you would
know better... :-(
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35711
More information about the Gcc-bugs
mailing list