PR c++/85470 - wrong error with static data member.
authorJakub Jelinek <jakub@redhat.com>
Mon, 23 Apr 2018 19:11:22 +0000 (21:11 +0200)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 23 Apr 2018 19:11:22 +0000 (15:11 -0400)
commit53de8a7e13cae771fdcda36abee4787bd6575ed7
tree18aeec703bd7c2e43af6af093753cb55f5df7d3e
parentae9fb56f6cd3769ab38220c4d214259ed02fd6cc
PR c++/85470 - wrong error with static data member.

* decl.c (check_initializer): Check DECL_INITIALIZED_IN_CLASS_P.
* typeck2.c (store_init_value): Likewise.

Co-Authored-By: Jason Merrill <jason@redhat.com>
From-SVN: r259571
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/typeck2.c
gcc/testsuite/g++.dg/cpp0x/extern_template-4.C [new file with mode: 0644]