digitalmars.D.bugs - [Bug 101] New: Pre and Post contracts segfault without -release switch in conjunction with --gc-sections.
- d-bugmail puremagic.com (32/32) Apr 11 2006 http://d.puremagic.com/bugzilla/show_bug.cgi?id=101
- d-bugmail puremagic.com (7/7) Apr 28 2006 http://d.puremagic.com/bugzilla/show_bug.cgi?id=101
http://d.puremagic.com/bugzilla/show_bug.cgi?id=101
Summary: Pre and Post contracts segfault without -release switch
in conjunction with --gc-sections.
Product: D
Version: 0.153
Platform: PC
OS/Version: Linux
Status: NEW
Severity: blocker
Priority: P2
Component: DMD
AssignedTo: bugzilla digitalmars.com
ReportedBy: godaves yahoo.com
This code segfaults without the -release switch on Linux. If you link
seperately without the --gc-sections switch, things work fine (ld version
2.15.92.0.2 20040927).
;---
import std.stdio;
int foo(int i)
in
{
assert(i > 0);
}
body
{
return i * i;
}
void main()
{
writefln(foo(0));
}
--
Apr 11 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=101
godaves yahoo.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--
Apr 28 2006








d-bugmail puremagic.com