This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/11517] [3.4 Regression]g++ fails to properly convert pointer expressions in conditional expressions.


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]