← Back to index
|
Original Bugzilla link
Bug 7030 – const method mangling of extern(C++) structs
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
All
Creation time
2011-11-29T08:29:00Z
Last change time
2012-11-01T21:46:33Z
Assigned to
nobody
Creator
code
Comments
Comment #0
by code — 2011-11-29T08:29:58Z
extern(C++) { struct S { void foo(int) const; } } pragma(msg, S.foo.mangleof); // On POSIX // prints : _ZN1S3fooEi // should be: _ZNK1S3fooEi ---
Comment #1
by code — 2011-11-29T10:02:54Z
current workaround: declare const as enclosing storage class const { void foo(int); } or const void foo(int);
Comment #2
by github-bugzilla — 2012-11-01T21:33:36Z
Commits pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/337731feffefaa969d424a8bd6571eedbc9bd1a9
test for Bug7030
https://github.com/D-Programming-Language/dmd/commit/2adbd46934045f7ea6d0d5927d2c603422c5cfb7
fix Bug7030 - use method type for const mangling instead of const qualifier from declaration
https://github.com/D-Programming-Language/dmd/commit/1dc9007c28445dacac1b44b4daca13293e9017b3
Merge pull request #543 from dawgfoto/Bug7030 Bug7030