[Bug c++/77907] [6 Regression] Add "const" to argument of constexpr constructor causes the object to be left in unconstructed state
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Nov 28 05:18:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77907
--- Comment #8 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon Nov 28 04:00:36 2016
New Revision: 242906
URL: https://gcc.gnu.org/viewcvs?rev=242906&root=gcc&view=rev
Log:
PR c++/77907 - static init and PMF
* constexpr.c (cxx_eval_constant_expression): Use cp_fold_convert.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/constexpr.c
trunk/gcc/testsuite/g++.dg/cpp0x/pr77907.C
More information about the Gcc-bugs
mailing list