www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3220] New: Compile time union crash when passed to template

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3220

           Summary: Compile time union crash when passed to template
           Product: D
           Version: 2.031
          Platform: All
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: jeremiep gmail.com


The following crashes DMD when trying to convert floating point to integral at
compile time using an union:

---
import std.metastrings;
union A {
   double x;
   int y;
}
alias ToString!(A(5.2).y) B; // Crashes here
---

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 31 2009
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3220


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
             Status|NEW                         |RESOLVED
                 CC|                            |clugdbug yahoo.com.au
         Resolution|                            |FIXED


--- Comment #1 from Don <clugdbug yahoo.com.au> 2010-08-18 06:34:00 PDT ---
Fixed in DMD2.040. Probably a duplicate -- several crashing bugs were fixed in
that release.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 18 2010