94 – incorrect symbols generated for "class Object"

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 94 - incorrect symbols generated for "class Object"
Summary: incorrect symbols generated for "class Object"
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: x86 Linux
: P2 major
Assignee: Walter Bright
URL:
Keywords: link-failure
Depends on:
Blocks:
Reported: 2006年04月08日 14:10 UTC by Thomas Kühne
Modified: 2014年02月15日 02:09 UTC (History)
0 users

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description Thomas Kühne 2006年04月08日 14:10:40 UTC
module somemodule;
class Object{
 int i;
}
int main(){
 return 0;
}
dmd 
/opt/dmd/dmd/lib/libphobos.a(object.o):(.rodata+0x8): multiple definition of `_init_6Object'
a.o:(.rodata+0x0): first defined here
/opt/dmd/dmd/lib/libphobos.a(object.o):(.data+0x0): multiple definition of `_Class_6Object'
a.o:(.data+0x0): first defined here
/opt/dmd/dmd/lib/libphobos.a(object.o):(.rodata+0x18): multiple definition of `_vtbl_6Object'
a.o:(.rodata+0x10): first defined here
collect2: ld returned 1 exit status
Comment 2 Walter Bright 2006年04月11日 01:34:42 UTC
Fixed 0.153


AltStyle によって変換されたページ (->オリジナル) /