This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51433] constexpr caching leads to incorrect dynamic initialization
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 10 Jan 2012 14:37:30 +0000
- Subject: [Bug c++/51433] constexpr caching leads to incorrect dynamic initialization
- Auto-submitted: auto-generated
- References: <bug-51433-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51433
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2012-01-10 14:37:30 UTC ---
Author: jason
Date: Tue Jan 10 14:37:26 2012
New Revision: 183065
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183065
Log:
PR c++/51433
* semantics.c (cxx_eval_call_expression): Always retry previously
non-constant expressions.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-cache1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/semantics.c
trunk/gcc/testsuite/ChangeLog