This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/34094] Undefined static data member in anonymous namespace can acquire a definition anyway
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Nov 2007 19:21:29 -0000
- Subject: [Bug c++/34094] Undefined static data member in anonymous namespace can acquire a definition anyway
- References: <bug-34094-11271@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-11-14 19:21 -------
IIRC this is not required to be diagnostic anyways. What is happening is that
we now mark the static data member as local to the TU which forces it to be
outputted.
This is only an issue in an anonymous namespace.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Undefined static data member|Undefined static data member
|can acquire a definition |in anonymous namespace can
|anyway |acquire a definition anyway
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34094