[Issue 4781] New: Segfault(mtype.c) with forward referenced typeof and .init

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Sep 1 02:20:41 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4781

           Summary: Segfault(mtype.c) with forward referenced typeof and
                    .init
           Product: D
           Version: D1 & D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: clugdbug at yahoo.com.au


--- Comment #0 from Don <clugdbug at yahoo.com.au> 2010-09-01 02:20:22 PDT ---
typeof(a4781.init) b4781;
typeof(7) a4781;

--> Segfault on D1 & D2.

By contrast, this related case gives a forward reference error followed by a
useless "voids have no value" message.

typeof(d4781) c4781;
typeof(7) d4781;

And, this third case also segfaults, but here we have a genuine circular
reference which should not compile.

auto e4781 = f4781.init;
typeof(e4781) f4781;

and another circular reference which currently gives a forward reference error.

typeof(g4781) h4781;
typeof(h4781) g4781;

-- 
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