decl.c (cp_finish_decl): Don't instantiate auto variable.
authorJason Merrill <jason@redhat.com>
Fri, 11 May 2018 02:54:52 +0000 (22:54 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 11 May 2018 02:54:52 +0000 (22:54 -0400)
commit683be2f77b3ce4db09e1175c1de4ec7f26f803e6
tree88252de62c5b24bace7e3d670e293b2580edb27f
parent3a2e98ce726393a48c818d097ba021baa7b6633b
decl.c (cp_finish_decl): Don't instantiate auto variable.

* decl.c (cp_finish_decl): Don't instantiate auto variable.

(check_static_variable_definition): Allow auto.
* constexpr.c (ensure_literal_type_for_constexpr_object): Likewise.

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