Thread overview
[Issue 9554] New: Inconsistent stringof and mangleof result for module/package identifier
Feb 21, 2013
Kenji Hara
Feb 21, 2013
Kenji Hara
February 21, 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@puremagic.com
        ReportedBy: k.hara.pg@gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg@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: -------
February 21, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9554


Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2013-02-21 02:25:19 PST ---
https://github.com/D-Programming-Language/dmd/pull/1681

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 21, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9554



--- Comment #2 from github-bugzilla@puremagic.com 2013-02-21 11:10:14 PST ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/5b17d1fa465de4e550c991ede7008f03eb906282
fix Issue 9554 - Inconsistent stringof and mangleof result for module/package
identifier

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------