Thread overview
[Issue 7907] New: [ICE] invalid expression on template argument crashes dmd
Apr 14, 2012
Kenji Hara
Apr 14, 2012
Kenji Hara
Apr 14, 2012
Walter Bright
April 14, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7907

           Summary: [ICE] invalid expression on template argument crashes
                    dmd
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: k.hara.pg@gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg@gmail.com> 2012-04-14 04:15:15 PDT ---
Following invalid code crashes dmd.

template Id(E)
{
    alias E Id;
}
template Id(alias E)
{
    alias E Id;
}

void main()
{
    //static assert(!__traits(compiles, { alias Id!([string.min]) X; }));
    alias Id!([string.min]) X;
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 14, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7907


Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2012-04-14 04:28:28 PDT ---
https://github.com/D-Programming-Language/dmd/pull/879

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 14, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7907



--- Comment #2 from github-bugzilla@puremagic.com 2012-04-14 13:00:47 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/67207ff6a4a191daf1daff262bacbae240780a4d fix Issue 7907 - [ICE] invalid expression on template argument crashes dmd

https://github.com/D-Programming-Language/dmd/commit/a8cf4207ca784652b802e5eec98ea94e5c7d33cf Merge pull request #879 from 9rnsr/fix7907

Issue 7907 - [ICE] invalid expression on template argument crashes dmd

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 14, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7907


Walter Bright <bugzilla@digitalmars.com> changed:

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


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