https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88983
--- Comment #5 from Marek Polacek ---
Author: mpolacek
Date: Fri Feb 1 00:30:46 2019
New Revision: 268438
URL: https://gcc.gnu.org/viewcvs?rev=268438&root=gcc&view=rev
Log:
PR c++/88983 - ICE with switch in constexpr function.
*
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88983
Marek Polacek changed:
What|Removed |Added
Status|NEW |ASSIGNED
Assignee|unassigned a
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88983
--- Comment #4 from Marek Polacek ---
I except to have a fix in a bit.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88983
--- Comment #3 from Marek Polacek ---
I think I see the problem: we're evaluating the body of the switch, and cond is
"1" so we're jumping over everything until we find "case 1":
if (1)
{
case 1:;
return = 1;
}
else
{
default:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88983
Marek Polacek changed:
What|Removed |Added
CC||mpolacek at gcc dot gnu.org
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88983
David Malcolm changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|