Bug 2724 – Persistent segfaults in templated code

Status
RESOLVED
Resolution
FIXED
Severity
blocker
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2009-03-10T09:36:00Z
Last change time
2015-06-09T05:14:56Z
Assigned to
bugzilla
Creator
andrei

Comments

Comment #0 by andrei — 2009-03-10T09:36:45Z
The compiler segfaults for any single mistake inside certain template code. import std.typecons; Tuple!(Types) foo(Types...)(string a) { typeof(return) result; mistake; return result; } void main() { auto a = foo!(int, double)("a"); } The compiler's answer is: Segmentation fault The 2.x compiler is next to unusable for writing template code at this time. Please go back in time last week and fix this bug.
Comment #1 by bugzilla — 2009-04-01T13:54:41Z
Fixed DMD 2.027