Bug 5012 – ICE(cod3.c): handling a nested function in inline asm.

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Linux
Creation time
2010-10-07T12:23:00Z
Last change time
2015-06-09T05:11:51Z
Keywords
iasm, ice
Assigned to
nobody
Creator
ibuclaw

Comments

Comment #0 by ibuclaw — 2010-10-07T12:23:22Z
eg: int foo() { int bar() {} asm { mov EAX, bar; } } Throws an 'Internal error: backend/cod3.c 4519' Whereas if bar() were global, it would compile just fine.
Comment #1 by bugzilla — 2013-10-03T22:06:14Z
Comment #2 by github-bugzilla — 2013-10-08T21:30:26Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/b925774d8c8265e7186c57e0c6f00a298d4554bd fix Issue 5012 - ICE(cod3.c): handling a nested function in inline asm. https://github.com/D-Programming-Language/dmd/commit/0d24563183fccc87de3b334d150a40e5a200c85f Merge pull request #2625 from WalterBright/fix5012 fix Issue 5012 - ICE(cod3.c): handling a nested function in inline asm.
Comment #3 by github-bugzilla — 2013-10-08T21:58:13Z
Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/0165a630fdfda055b2053c89dd5796e98b88ed85 Merge pull request #2625 from WalterBright/fix5012 fix Issue 5012 - ICE(cod3.c): handling a nested function in inline asm.