This is the mail archive of the gcc-patches@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]

Re: [C++ PATCH] Fix ice-on-invalid (i ? j : k) = (void) bar (); (PR c++/30847)


Jakub Jelinek wrote:


2007-03-19 Jakub Jelinek <jakub@redhat.com>

	PR c++/30847
	* typeck.c (build_modify_expr): Don't call stabilize_expr on RHS
	if RHS has void type.

* g++.dg/parse/cond3.C: New test.

ok (except the changelog isn't exactly describing the 'bail out on assigning a void type' behaviour :))


nathan
--
Nathan Sidwell    ::   http://www.codesourcery.com   ::         CodeSourcery
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk


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