[Bug c++/14211] missing lvalue check ?

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Fri Feb 20 21:30:00 GMT 2004


------- Additional Comments From bangerth at dealii dot org  2004-02-20 21:30 -------
5.2.11/1 clearly states that the result of a const_cast<T> is of type T. 
In your case, it is a char*, so it is not an lvalue. Thus, gcc must 
be wrong. Note also 5.2.11/4. 
 
W. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-02-20 21:30:30
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14211



More information about the Gcc-bugs mailing list