This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r269510 - in /branches/gcc-8-branch/gcc: cp/Cha...
- From: jason at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Fri, 08 Mar 2019 21:40:04 -0000
- Subject: 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