This is the mail archive of the gcc-bugs@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]

[Bug c++/53932] New: [4.3 regression]C++ reference variable to member of anonymous union in global is error


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


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