[Bug c++/65525] [5 Regression] ICE: sorry, unimplemented: unexpected AST of kind mem_ref (-std=c++14, ICE: in potential_constant_expression_1, at cp/constexpr.c:4432)
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Mar 26 16:21:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65525
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |jason at gcc dot gnu.org
Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #3)
> so I wonder why we look at the side-effects at all? That is, why does
> COMPOUND_EXPR handling not return false on side-effects early?
Because a call to a constexpr function has TREE_SIDE_EFFECTS; we don't know
whether it's constant until we do the evaluation.
More information about the Gcc-bugs
mailing list