This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11517] [3.3/3.4 Regression]g++ fails to properly convert pointer expressions in conditional expressions.
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jul 2003 15:09:23 -0000
- Subject: [Bug c++/11517] [3.3/3.4 Regression]g++ fails to properly convert pointer expressions in conditional expressions.
- References: <20030714104225.11517.gdr@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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.