This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/23723] New: "undefined reference" with -g and const empty struct
- From: "falk at debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Sep 2005 14:39:59 -0000
- Subject: [Bug c++/23723] New: "undefined reference" with -g and const empty struct
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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