https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89285
--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 45667 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45667&action=edit gcc9-pr89285-wip.patch Updated patch to address 1). For 2), I guess we need to handle e.g. CLEANUP_STMT, IF_STMT, FOR_STMT, WHILE_STMT, DO_STMT, SWITCH_STMT, CONTINUE_STMT, BREAK_STMT in cxx_eval_constant_expression.