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: bugzi...@digitalmars.com
        ReportedBy: clugd...@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: -------

Reply via email to