Bug 11957 – extern inside function scope ignored

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-01-21T04:27:00Z
Last change time
2015-06-17T21:03:48Z
Keywords
pull, wrong-code
Assigned to
yebblies
Creator
yebblies

Comments

Comment #0 by yebblies — 2014-01-21T04:27:03Z
extern(C++) class C { void x() {} } void main() { extern(C++) class D : C { override void x() {} } } testx.d(11): Error: function testx.main.D.x does not override any function But putting extern(C++) on the function itself works.
Comment #1 by yebblies — 2014-01-21T04:38:42Z
Comment #2 by github-bugzilla — 2014-01-21T17:47:08Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/5cc4c904de8d88786cdd84e6942c42c7f1c0c0ab Fix Issue 11957 - extern inside function scope ignored https://github.com/D-Programming-Language/dmd/commit/85f8826987e4677c202e9763a35216457a973685 Merge pull request #3130 from yebblies/issue11957 Issue 11957 - extern inside function scope ignored
Comment #3 by github-bugzilla — 2015-03-29T07:39:20Z
Comment #4 by github-bugzilla — 2015-06-17T21:03:48Z