* decl.c (cp_finish_decl): Don't instantiate auto variable.
commit03dbe51bff18d90e1546df651e55cc2a54bad704
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 11 May 2018 02:54:52 +0000 (11 02:54 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 11 May 2018 02:54:52 +0000 (11 02:54 +0000)
tree88252de62c5b24bace7e3d670e293b2580edb27f
parent773b3994a64e5fd949e8b5ebf46d602cee369ab1
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@260150 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/cp/decl.c
gcc/testsuite/g++.dg/cpp1z/static2.C [new file with mode: 0644]