[Issue 4940] New: ICE(symbol.c): Accessing tuple-typed field of struct literal with user-defined constructor

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Sep 25 18:40:34 PDT 2010


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

           Summary: ICE(symbol.c): Accessing tuple-typed field of struct
                    literal with user-defined constructor
           Product: D
           Version: 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: k.hanazuki at gmail.com


--- Comment #0 from Kasumi Hanazuki <k.hanazuki at gmail.com> 2010-09-25 18:39:51 PDT ---
DMD v2.049 on Windows crashes with the message:

  Internal error: ..\ztc\symbol.c 1043

This only occurs when accessing a tuple-typed field on a struct literal
directly and using an user-defined constructor.

----

void main() {
  auto w = S(0).x;
}

template Tuple(T...) {
  alias T Tuple;
}

struct S {
  Tuple!(int, int) x;
  this(int) { }
}

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