PR c++/82115 - ICE with variable initialized with its own address.
authorJason Merrill <jason@redhat.com>
Tue, 12 Dec 2017 22:09:42 +0000 (17:09 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 12 Dec 2017 22:09:42 +0000 (17:09 -0500)
commit5eb63cfd035391ed4a1552e41fa613c341fd7465
tree44205f36b1f1947b1b0fc6f3b95189112f62988b
parent331e2db3b82592c7644186aa950acc29f54df29e
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.

From-SVN: r255590
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp0x/constexpr-self1.C