www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9399] New: ICE with nested function, template alias parameter, -inline, depending on order of source files

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

           Summary: ICE with nested function, template alias parameter,
                    -inline, depending on order of source files
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: nilsbossung googlemail.com


--- Comment #0 from Nils <nilsbossung googlemail.com> 2013-01-26 01:04:55 PST
---
Fails since c4e23a5a470aa981b268d56f22b15ef17e09aa72 (2.061).

---
cat > test1.d <<CODE
import test2;
void fun(int a) {
    void nested() {
        a = 42;
    }
    call!nested();
}
CODE
cat > test2.d <<CODE
void call(alias n)() {
    n();
}
CODE
dmd -c -inline test2.d test1.d
---
test1.d(2): Error: function test1.fun compiler error, parameter 'a', bugzilla
2962?
dmd: glue.c:808: virtual void FuncDeclaration::toObjFile(int): Assertion `0'
failed.
Aborted (core dumped)
---

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 26 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9399


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

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


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2013-01-31 01:23:17 PST ---
https://github.com/D-Programming-Language/dmd/pull/1587

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 31 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9399



--- Comment #2 from github-bugzilla puremagic.com 2013-01-31 06:24:39 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/c53616f35d54e454849030272a5e7003658a08db
fix Issue 9399 - ICE with nested function, template alias parameter, -inline,
depending on order of source files

https://github.com/D-Programming-Language/dmd/commit/3ad00285cb1ad645ef05f3c808e25e67c650abe4
Merge pull request #1587 from 9rnsr/fix9399

Issue 9399 - ICE with nested function, template alias parameter, -inline,
depending on order of source files

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 31 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9399


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

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


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