[Bug c++/25894] [3.4/4.0/4.1/4.2 Regression] conditional operator operating on derived / base pointers appears incorrect

mmitchel at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat Jan 21 18:05:00 GMT 2006



------- Comment #3 from mmitchel at gcc dot gnu dot org  2006-01-21 18:05 -------
The code in the original description is invalid.  "x" cannot appear in a
constant-expression because its initializer is not an integral constant
expression, because the initializer contains casts to pointer types.  See
[expr.const].

The actual value given to "x" is a separate issue, so PR 25895 remains open.


-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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



More information about the Gcc-bugs mailing list