[Bug c++/67026] GCC incorrectly rejects well-formed constexpr function definition

trippels at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Aug 29 15:54:00 GMT 2015


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

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-08-29
                 CC|                            |trippels at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #4 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Confirmed. 

Another example:

constexpr int f3() {
  return 0;
  throw;
}

Checking should stop after the return statement.



More information about the Gcc-bugs mailing list