This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]