[Issue 5718] New: Can't demangle symbol defined inside unittest block
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Mar 7 20:14:36 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5718
Summary: Can't demangle symbol defined inside unittest block
Product: D
Version: unspecified
Platform: Other
OS/Version: Windows
Status: NEW
Keywords: wrong-code
Severity: regression
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: cbkbbejeap at mailinator.com
--- Comment #0 from Nick Sabalausky <cbkbbejeap at mailinator.com> 2011-03-07 20:11:36 PST ---
This worked on 2.050, but fails on 2.052:
---------------------
// demangleUnittestIdent.d
import std.stdio, std.traits, std.demangle;
unittest
{
int foo;
writeln( demangle( mangledName!foo ) );
}
void main(){}
---------------------
>dmd demangleUnittestIdent.d -unittest
2.050 result: void demangleUnittestIdent.__unittest1() . int foo
2.052 result:
nt11__unittest1FZv59__T5DummyS46_D21demangleUnittestIdent11__unittest1FZv3fooi
--
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