This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH: Bug in ?: operator
- To: nathan at compsci dot bristol dot ac dot uk
- Subject: Re: C++ PATCH: Bug in ?: operator
- From: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- Date: Wed, 5 May 1999 21:47:44 +0200 (MET DST)
- cc: egcs-patches at egcs dot cygnus dot com, Gabriel Dos Reis <Gabriel dot Dos-Reis at cmla dot ens-cachan dot fr>
What happened to the patch below?
http://egcs.cygnus.com/ml/egcs-patches/1999-04/msg00596.html
Wed Apr 14 16:52:56 BST 1999 Nathan Sidwell <nathan@acm.org>
* expr.c (expand_expr): Cope with COND_EXPRs with one
non-returning branch.
Wed Apr 14 16:52:56 BST 1999 Nathan Sidwell <nathan@acm.org>
* call.c (add_builtin_candidate): Allow unpromoted enumeral
choices in COND_EXPRs.
* typeck.c (build_conditional_expr): Use same_type_p. Allow
mismatched enumerals to promote. Deal with throw in one branch.
As extension permit one side to be void. Don't die on converting
to void.
(build_modify_expr): Adjust for such COND_EXPRs on lhs.
As far as I can see, it didn't get any, but was not explicitely rejected,
either...
Gerald
--
Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/