[Bug c++/28774] Request for warning where const/volatile is ignored in a cast

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Thu Aug 24 01:59:00 GMT 2006

------- Comment #1 from bangerth at dealii dot org  2006-08-24 01:59 -------
Um, why? The value "1.234" is an rvalue of type double. You cast it to
an rvalue of type "const int", which can clearly be assigned to an
int right away without another cast. In fact, const-volatile qualifications
do not have meaning for rvalues at all, which makes the whole question
kinda moot. 

Or do I miss something?



bangerth at dealii dot org changed:

           What    |Removed                     |Added
                 CC|                            |bangerth at dealii dot org
             Status|UNCONFIRMED                 |WAITING


More information about the Gcc-bugs mailing list