← Back to index
|
Original Bugzilla link
Bug 957 – linkage attributes for function level declarations are ignored
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2007-02-13T07:42:00Z
Last change time
2014-02-16T15:22:30Z
Assigned to
bugzilla
Creator
thomas-dloop
Comments
Comment #0
by thomas-dloop — 2007-02-13T07:42:03Z
# extern(Pascal) void foo(){ # } # # extern(Pascal) void function() f; # # void main(){ # extern(Pascal) void function() g; # # f = &foo; // success # g = &foo; // fails # } # Error: cannot implicitly convert expression (& foo) of type void(Pascal *)() to void(*)()
Comment #1
by thomas-dloop — 2007-03-29T14:30:08Z
Added to DStress as
http://dstress.kuehne.cn/run/e/extern_10_A.d
http://dstress.kuehne.cn/run/e/extern_10_B.d
http://dstress.kuehne.cn/run/e/extern_10_C.d
http://dstress.kuehne.cn/run/e/extern_10_D.d
http://dstress.kuehne.cn/run/e/extern_10_E.d
http://dstress.kuehne.cn/run/e/extern_10_F.d
Comment #2
by thomas-dloop — 2007-04-23T12:54:57Z
*** This bug has been marked as a duplicate of 1134 ***