www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9001] New: ICE on assigning expression tuple element with struct's `init` to enum

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

           Summary: ICE on assigning expression tuple element with
                    struct's `init` to enum
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: verylonglogin.reg gmail.com


--- Comment #0 from Denis Shelomovskij <verylonglogin.reg gmail.com> 2012-11-12
13:30:39 MSK ---
---
struct S
{ int i = -1; }

template expressionTuple(expressions...)
{ alias expressions expressionTuple; }

alias expressionTuple!(S.init) exprTuple;

enum es = exprTuple[0];
---

P.S.
It's over nine thousand!

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 12 2012
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9001


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |DUPLICATE


--- Comment #1 from Walter Bright <bugzilla digitalmars.com> 2012-11-12
16:43:21 PST ---
*** This issue has been marked as a duplicate of issue 9000 ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 12 2012