← Back to index
|
Original Bugzilla link
Bug 8541 – mangleof symbol passed as alias gets messed up
Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-08-11T22:13:00Z
Last change time
2013-11-25T04:39:51Z
Assigned to
nobody
Creator
ellery-newcomer
Comments
Comment #0
by ellery-newcomer — 2012-08-11T22:13:34Z
dmd 2.060. code: template Z(string s) { pragma(msg, "fn.mangleof 2: " ~ s); } struct S(alias fn, string prop) { pragma(msg, "fn.mangleof 1: " ~ fn.mangleof); alias Z!(fn.mangleof) F; } class Foo{ @property int i(){ return 1; } } void main() { alias S!(Foo.i,"") SA1; } prints fn.mangleof 1: _D8mangleof3Foo1iMFNdZi fn.mangleof 2: FNdZi
Comment #1
by andrej.mitrovich — 2013-01-26T15:56:08Z
As a workaround for now you can use (fn).mangleof.
Comment #2
by yebblies — 2013-11-25T04:39:51Z
fn.mangleof 1: _D5testx3Foo1iMFNdZi fn.mangleof 2: _D5testx3Foo1iMFNdZi