This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/67795] Wrong code generated for conditional expression with cast
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 01 Oct 2015 12:52:17 +0000
- Subject: [Bug c++/67795] Wrong code generated for conditional expression with cast
- Auto-submitted: auto-generated
- References: <bug-67795-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67795
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
I would guess the issue is that ?: returns an rvalue (but that may not be 100%
correct if omitting the cast works and does not warn)