constexpr-self1.C
300 Bytes
-
PR c++/82115 - ICE with variable initialized with its own address. · 5eb63cfd
* 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
Jason Merrill committed