PR c++/82115 - ICE with variable initialized with its own address.
authorJason Merrill <jason@redhat.com>
Wed, 6 Dec 2017 21:42:02 +0000 (16:42 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 6 Dec 2017 21:42:02 +0000 (16:42 -0500)
commitc965919a064f585b05e6a73837b0b050c0d7d9e5
treef1c88f260bc201fb11496ac44eb9ea812b082a79
parentc79144f8353af3292903c9c8e508f1de986eb6b0
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.

From-SVN: r255454
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp0x/constexpr-self1.C [new file with mode: 0644]