https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85470
--- Comment #5 from Jason Merrill ---
Author: jason
Date: Mon Apr 23 19:58:57 2018
New Revision: 259572
URL: https://gcc.gnu.org/viewcvs?rev=259572=gcc=rev
Log:
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.
Added:
branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp0x/extern_template-4.C
Modified:
branches/gcc-7-branch/gcc/cp/ChangeLog
branches/gcc-7-branch/gcc/cp/decl.c
branches/gcc-7-branch/gcc/cp/typeck2.c