[Issue 7474] New: ICE cgcs.c 354 on instanciating a struct with field and destructor as tuple

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 9 11:19:01 PST 2012


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

           Summary: ICE cgcs.c 354 on instanciating a struct with field
                    and destructor as tuple
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice, ice-on-valid-code
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: sludwig at outerproduct.org


--- Comment #0 from Sönke Ludwig <sludwig at outerproduct.org> 2012-02-09 11:18:59 PST ---
The following code produces "Internal error: ..\ztc\cgcs.c 354".

---
struct S {
  float x;
  ~this() {}
}

void fun(T...)() { T x; }
void gun() { fun!S(); }
---

Changing float to byte, short, int, long or the unsigned variants of these
makes the code compile. All other primitive types seem to fail.

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