[Issue 8541] New: mangleof symbol passed as alias gets messed up
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Aug 11 22:13:37 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8541
Summary: mangleof symbol passed as alias gets messed up
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: ellery-newcomer at utulsa.edu
--- Comment #0 from Ellery Newcomer <ellery-newcomer at utulsa.edu> 2012-08-11 22:13:34 PDT ---
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
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list