[Issue 2974] New: Segfault on auto function
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed May 13 11:40:42 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2974
Summary: Segfault on auto function
Product: D
Version: 2.029
Platform: PC
OS/Version: Windows
Status: NEW
Keywords: ice-on-invalid-code, patch
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: clugdbug at yahoo.com.au
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);
}
-------
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list