This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11517] [3.4 Regression]g++ fails to properly convert pointer expressions in conditional expressions.
- From: "pinskia at physics dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jul 2003 14:39:59 -0000
- Subject: [Bug c++/11517] [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
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Keywords|rejects-valid |error-recovery, ice-on-
| |invalid-code
Resolution|INVALID |
Summary|[3.3/3.4 Regression]g++ |[3.4 Regression]g++ fails to
|fails to properly convert |properly convert pointer
|pointer expressions in |expressions in conditional
|conditional expressions. |expressions.
Target Milestone|3.3.1 |3.4
Version|3.3.1 |3.4
------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-23 14:39 -------
This now ICE's on the mainline (20030723) so making this a regression. It did not ICE
yesterday:
/Users/pinskia/src/gccPRs/testcases/pr11517.cc:11: error: conditional
expression between distinct pointer types `Boolean*' and `IsZero*' lacks a
cast
/Users/pinskia/src/gccPRs/testcases/pr11517.cc:11: error: could not convert `
(operator new(long unsigned int)(1), ((true,
(<anonymous>->Boolean::Boolean(bool)(false), (<anonymous> <unknown operator>
false))), <anonymous>))' to `<type error>'
/Users/pinskia/src/gccPRs/testcases/pr11517.cc:11: error: could not convert `
this' to `<type error>'
/Users/pinskia/src/gccPRs/testcases/pr11517.cc:11: internal compiler error: tree
check: expected class 't', have 'x' (error_mark) in build_conditional_expr,
at cp/call.c:3354
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.