re PR c++/48089 ([C++0x] ICE on in(?)valid in constexpr constructors)
authorJason Merrill <jason@redhat.com>
Thu, 17 Mar 2011 02:36:29 +0000 (22:36 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 17 Mar 2011 02:36:29 +0000 (22:36 -0400)
commitcb21e9cdf7176be9c23c3a003822cf7a3d3f4995
tree428b8802ef5eb5969169de941eb45a54c6b502c1
parent89ae3825aa6e60bb68010353f2a292a056b8a9da
re PR c++/48089 ([C++0x] ICE on in(?)valid in constexpr constructors)

PR c++/48089
* semantics.c (potential_constant_expression_1): Don't allow *this
in a constructor.
(register_constexpr_fundef): Use potential_rvalue_constant_expression.

From-SVN: r171086
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-48089.C [new file with mode: 0644]