https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79681
Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2017-02-23 CC| |mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Started with commit 18f98733d0d1abcbe3b5c12302e62611ee182fb1 Author: jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Fri Oct 3 16:48:18 2014 +0000 * semantics.c (constexpr_fn_retval): Ignore declarations in C++14. (var_in_constexpr_fn): New. (cxx_eval_constant_expression): Look into DECL_INITIAL. (potential_constant_expression_1): Allow constexpr-local vars. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215862 138bc75d-0d04-0410-961f-82ee72b054a4 It had been rejected before that revision: error: body of constexpr function ‘constexpr bool foo()’ not a return-statement