Bug 2974 – Segfault(mtype.c) on auto function

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2009-05-13T11:40:00Z
Last change time
2015-06-09T01:26:27Z
Keywords
ice-on-invalid-code, patch
Assigned to
bugzilla
Creator
clugdbug

Comments

Comment #0 by clugdbug — 2009-05-13T11:40:41Z
Related to 2810, but segfaults instead. --- auto a() { return 0; } typeof(a) X; --- PATCH: -------- --- mtype.c (revision 26) +++ mtype.c (working copy) @@ -1544,7 +1544,7 @@ void TypeNext::checkDeprecated(Loc loc, Scope *sc) { Type::checkDeprecated(loc, sc); - next->checkDeprecated(loc, sc); + if (next) next->checkDeprecated(loc, sc); } -------
Comment #1 by bugzilla — 2009-07-09T02:56:05Z
Fixed dmd 2.031