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