r269510 - in /branches/gcc-8-branch/gcc: cp/Cha...

jason@gcc.gnu.org jason@gcc.gnu.org
Fri Mar 8 21:40:00 GMT 2019


Author: jason
Date: Fri Mar  8 21:40:04 2019
New Revision: 269510

URL: https://gcc.gnu.org/viewcvs?rev=269510&root=gcc&view=rev
Log:
	PR c++/87921 - wrong error with inline static data member.

An instantiation of an inline variable isn't defined until it's
instantiated, so don't treat it as defined just because it's inline.

	* decl2.c (c_parse_final_cleanups): Don't force out uninstantiated
	inline static data members.

Added:
    branches/gcc-8-branch/gcc/testsuite/g++.dg/cpp1z/inline-var5.C
Modified:
    branches/gcc-8-branch/gcc/cp/ChangeLog
    branches/gcc-8-branch/gcc/cp/decl2.c



More information about the Gcc-cvs mailing list