This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53932] New: [4.3 regression]C++ reference variable to member of anonymous union in global is error
- From: "nuller0222 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 12 Jul 2012 02:55:22 +0000
- Subject: [Bug c++/53932] New: [4.3 regression]C++ reference variable to member of anonymous union in global is error
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53932
Bug #: 53932
Summary: [4.3 regression]C++ reference variable to member of
anonymous union in global is error
Classification: Unclassified
Product: gcc
Version: 4.3.4
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: nuller0222@gmail.com
cat prog.cpp
static union { int i; };
int& r = i;
int main() { return r; }
g++ prog.cpp
/tmp/ccIAPctI.o::(.rdata+0x0): undefined reference to `_i'
collect2: ld returned 1 exit status