[Bug c++/11517] [3.3/3.4 Regression]g++ fails to properly convert pointer expressions in conditional expressions.
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Mon Jul 14 15:09:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11517
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
------- Additional Comments From bangerth at dealii dot org 2003-07-14 15:09 -------
I am not at all sure that the code is legal, and even less that it is
a regression. The standard says that the two operands shall have the same
type, or that one should be convertible to the other one. This is not
the case here, where both would have to be converted to pointer-to-base.
FWIW, icc doesn't accept the code either. Gaby, would you mind
explaining on which part of 5.16 you base your opinion?
W.
More information about the Gcc-bugs
mailing list