[Issue 9554] New: Inconsistent stringof and mangleof result for module/package identifier
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Feb 21 01:44:18 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9554
Summary: Inconsistent stringof and mangleof result for
module/package identifier
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: k.hara.pg at gmail.com
--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2013-02-21 01:44:17 PST ---
This test case should pass, but fails.
module test.mod;
alias pkg = test;
template Test(alias name) { enum Test = name; }
void fun() {}
// ("fun()"c == "void()"c) is false
static assert(fun.stringof == Test!(fun.stringof));
// ("_D4test3mod3funFZv"c == "FZv"c) is false
static assert(fun.mangleof == Test!(fun.mangleof));
// identifier 'stringof' of 'test.stringof' is not defined
static assert(test.stringof == Test!(test.stringof));
// identifier 'mangleof' of 'test.mangleof' is not defined
static assert(test.mangleof == Test!(test.mangleof));
// identifier 'stringof' of 'pkg.stringof' is not defined
static assert(pkg.stringof == Test!(pkg.stringof));
// identifier 'mangleof' of 'pkg.mangleof' is not defined
static assert(pkg.mangleof == Test!(pkg.mangleof));
--
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