[Bug c++/48089] [C++0x] ICE on in(?)valid in constexpr constructors

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri May 6 22:09:00 GMT 2011


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



More information about the Gcc-bugs mailing list