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
Comment #2 by thomas-dloop — 2007-04-23T12:54:57Z
*** This bug has been marked as a duplicate of 1134 ***