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: unassig...@gcc.gnu.org ReportedBy: nuller0...@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