https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82115

--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Dec  6 21:42:02 2017
New Revision: 255454

URL: https://gcc.gnu.org/viewcvs?rev=255454&root=gcc&view=rev
Log:
        PR c++/82115 - ICE with variable initialized with its own address.

        * pt.c (value_dependent_expression_p): Add lval parameter.  Don't
        consider DECL_INITIAL if it's true.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-self1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/pt.c

Reply via email to