Bug 15492 – ICE (segfault) on class { auto f() with out contract }

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2016-01-01T06:18:54Z
Last change time
2017-08-30T13:05:18Z
Keywords
ice
Assigned to
No Owner
Creator
Simon Na.

Comments

Comment #0 by eiderdaus — 2016-01-01T06:18:54Z
class A { auto f() out { assert (true); } body { } } DMD v2.069.2-b1 segfaults for me (Debian 6), so does DMD 2.069.1 on dpaste: http://dpaste.dzfl.pl/b8502e7fb31f Any of the following makes the segfault disappear: * change 'class' to 'struct', * change 'auto' to 'void', * change 'out' to 'in', or remove the entire contract. This bug is different from the following bug report; the following bug is resolved+fixed, and its sample code doesn't segfault DMD for me: https://issues.dlang.org/show_bug.cgi?id=10596 -- Simon
Comment #1 by eiderdaus — 2017-08-30T13:05:18Z
With dmd v2.075.1, the source example from 2016-01-01 builds and links without errors, on both Windows and 64-bit Arch. Closing this issue as worksforme.