www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11748] New: [ICE] function call as alias parameter of template gives ICE

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

           Summary: [ICE] function call as alias parameter of template
                    gives ICE
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: advmail katamail.com


--- Comment #0 from Andrea Fontana <advmail katamail.com> 2013-12-15 04:21:38
PST ---
Internal error: s2ir.c 135

Example:

enum my_template(alias T) = T.stringof;
void my_function(int i) { }
my_template!(my_function(0));

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 15 2013
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11748


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice, pull


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2013-12-15 06:51:29 PST ---
https://github.com/D-Programming-Language/dmd/pull/2966

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 15 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11748



--- Comment #2 from github-bugzilla puremagic.com 2013-12-15 13:23:31 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/7c5439c8273149192e42da046afec88c2e88e25a
fix Issue 11748 - [ICE] function call as alias parameter of template gives ICE

https://github.com/D-Programming-Language/dmd/commit/b2dfd4132bc9738a554041cba008ab3b68bc63fa
Merge pull request #2966 from 9rnsr/fix11748

Issue 11748 - [ICE] function call as alias parameter of template gives ICE

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 15 2013
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11748


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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