Bug 101 – Pre and Post contracts segfault without -release switch in conjunction with --gc-sections.

Status
RESOLVED
Resolution
FIXED
Severity
blocker
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2006-04-11T09:34:00Z
Last change time
2014-02-15T02:10:02Z
Assigned to
bugzilla
Creator
godaves

Comments

Comment #0 by godaves — 2006-04-11T09:34:42Z
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)); }