Fix handling of namespace-scope undeduced auto decls.
authorJason Merrill <jason@redhat.com>
Fri, 23 Aug 2019 23:29:16 +0000 (19:29 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 23 Aug 2019 23:29:16 +0000 (19:29 -0400)
commit5b93b053495e46aaf29811f1ac23d7f484be6ea9
tree73f2917ced232884dd4de094b544aa95290e992c
parent01c53a74cd594131d9b066eb3036c6245562dc41
Fix handling of namespace-scope undeduced auto decls.

* decl2.c (decl_dependent_p): New.
(mark_used): Check it instead of just processing_template_decl.

From-SVN: r274894
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/testsuite/g++.dg/cpp1z/constexpr-if30.C [new file with mode: 0644]