Bug 8532 – Pure Segfault

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-08-10T03:44:00Z
Last change time
2012-10-15T08:07:11Z
Keywords
ice, ice-on-invalid-code
Assigned to
nobody
Creator
daniel350

Comments

Comment #0 by daniel350 — 2012-08-10T03:44:26Z
auto sum(Y, R ...)(R r, Y val) pure { return sum(r, val); } // segfault //auto sum(Y, R ...)(R r, Y val) { return sum(r, val); } // no segfault, just an error, as it should void main() { sum(1, 2, 3); } I first noticed this in 2.059, it remained to 2.060. http://dpaste.dzfl.pl/74702d88
Comment #1 by github-bugzilla — 2012-10-15T08:06:14Z
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/b19850a5ae2b9c72c9e0bc60e616cbc3af5c9b52 Fix issue 8532 Pure segfault Segfault when using the return type to check for parameters escaping, when it isn't known yet.