This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/48089] [C++0x] ICE on in(?)valid in constexpr constructors
- 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: Fri, 6 May 2011 22:09:08 +0000
- Subject: [Bug c++/48089] [C++0x] ICE on in(?)valid in constexpr constructors
- Auto-submitted: auto-generated
- References: <bug-48089-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48089
--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-06 21:58:25 UTC ---
Author: jason
Date: Fri May 6 21:58:22 2011
New Revision: 173513
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173513
Log:
PR c++/48089
* semantics.c (potential_constant_expression_1): Don't allow *this
in a constructor.
(register_constexpr_fundef): Use potential_rvalue_constant_expression.
Added:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-48089.C
Modified:
branches/gcc-4_6-branch/gcc/cp/ChangeLog
branches/gcc-4_6-branch/gcc/cp/semantics.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog