[Bug c++/71561] ICE with -Wall on valid C++ code on x86_64-linux-gnu: in potential_constant_expression_1, at cp/constexpr.c:5249

msebor at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jun 17 03:00:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71561

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2016-06-17
                 CC|                            |msebor at gcc dot gnu.org
      Known to work|                            |4.9.3
     Ever confirmed|0                           |1
      Known to fail|                            |5.3.0, 6.1.0, 7.0

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed.  4.9.3 compiles the test case successfully. 5.3 prints: sorry,
unimplemented: unexpected AST of kind goto_expr.  The ICE was introduced in 6.1
in the following commit:

r217663 | jason | 2014-11-17 13:16:14 -0500 (Mon, 17 Nov 2014) | 48 lines

        C++14 constexpr support (minus loops and multiple returns)


More information about the Gcc-bugs mailing list