[Bug c++/23723] New: "undefined reference" with -g and const empty struct
falk at debian dot org
gcc-bugzilla@gcc.gnu.org
Sun Sep 4 14:40:00 GMT 2005
gcc version 4.1.0 20050819 (experimental)
Target: alphaev68-unknown-linux-gnu
falk@juist:~/ecc% cat main.ii
struct S { };
S const s = S();
int main(){}
falk@juist:~/ecc% g++ main.ii
falk@juist:~/ecc% g++ main.ii -g
/tmp/ccAquXQn.o:(.debug_info+0x150): undefined reference to `s'
collect2: ld returned 1 exit status
falk@juist:~/ecc% g++-4.0 main.ii -g
falk@juist:~/ecc%
--
Summary: "undefined reference" with -g and const empty struct
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: falk at debian dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23723
More information about the Gcc-bugs
mailing list