← Back to index
|
Original Bugzilla link
Bug 9399 – ICE with nested function, template alias parameter, -inline, depending on order of source files
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-01-26T01:04:00Z
Last change time
2013-01-31T07:30:14Z
Keywords
ice, pull
Assigned to
nobody
Creator
nilsbossung
Comments
Comment #0
by nilsbossung — 2013-01-26T01:04:55Z
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) ---
Comment #1
by k.hara.pg — 2013-01-31T01:23:17Z
https://github.com/D-Programming-Language/dmd/pull/1587
Comment #2
by github-bugzilla — 2013-01-31T06:24:39Z
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