[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
Tue Dec 6 18:52:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77907
--- Comment #9 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Tue Dec 6 18:51:45 2016
New Revision: 243312
URL: https://gcc.gnu.org/viewcvs?rev=243312&root=gcc&view=rev
Log:
PR c++/77907 - static init and PMF
* constexpr.c (cxx_eval_constant_expression): Use cp_fold_convert.
Added:
branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp0x/pr77907.C
Modified:
branches/gcc-6-branch/gcc/cp/ChangeLog
branches/gcc-6-branch/gcc/cp/constexpr.c
More information about the Gcc-bugs
mailing list