Bug 16694 – ICE on taking address of `export` function (declaration-only)

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-11-16T09:44:54Z
Last change time
2017-12-18T22:57:59Z
Assigned to
No Owner
Creator
Johan Engelen

Comments

Comment #0 by jbc.engelen — 2016-11-16T09:44:54Z
Reproducer: ``` export void bar(); auto barptr = &bar; `` Crashes with `dmd -c test.d`, DMD 2.072.0.
Comment #1 by bitter.taste — 2017-01-04T20:59:45Z
Comment #2 by github-bugzilla — 2017-11-28T12:00:13Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/3ae9f7207a0f4bb76cb8260fe82969211556dd0a Fix Issue 16694 - ICE taking address of exported function (declaration-only) https://github.com/dlang/dmd/commit/e1b8d3713ca10801861c925546df868b095e9934 Merge pull request #7373 from JinShil/fix_16694 Fix Issue 16694 - ICE taking address of `export` function (declaration-only) merged-on-behalf-of: Sebastian Wilzbach <[email protected]>
Comment #3 by github-bugzilla — 2017-12-18T22:57:59Z
Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/3ae9f7207a0f4bb76cb8260fe82969211556dd0a Fix Issue 16694 - ICE taking address of exported function (declaration-only) https://github.com/dlang/dmd/commit/e1b8d3713ca10801861c925546df868b095e9934 Merge pull request #7373 from JinShil/fix_16694