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