[Bug c++/84192] [7/8 Regression] ICE with statement expression
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Feb 14 23:00:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84192
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I wonder if we shouldn't just force a STATEMENT_LIST around the
statement-expression even if it contains just a single statement (in
finish_stmt_expr).
Then the constexpr.c code would know it deals with a statement expression and
would arrange for jump_target to be passed around, like it does when using:
bool bar()
{
return ({ (void) 0; return true; }) && false;
}
More information about the Gcc-bugs
mailing list