PR c++/82115 - ICE with variable initialized with its own address.
commit0b5993cfe13e556555cd5051dae3a55d1d98f4b8
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Dec 2017 22:09:42 +0000 (12 22:09 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Dec 2017 22:09:42 +0000 (12 22:09 +0000)
tree44205f36b1f1947b1b0fc6f3b95189112f62988b
parent3d41d2c55680e211c85607be2cac7c51e14dca42
PR c++/82115 - ICE with variable initialized with its own address.

* cp-tree.h (struct lang_decl_base): Add dependent_init_p.
(DECL_DEPENDENT_INIT_P, SET_DECL_DEPENDENT_INIT_P): New.
* decl.c (cp_finish_decl): Set it.
(duplicate_decls): Copy it.
* pt.c (tsubst_decl): Clear it.
(value_dependent_expression_p): Revert earlier change.  Check it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@255590 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp0x/constexpr-self1.C