www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12217] New: Unstable instance mangled name of function local template

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12217

           Summary: Unstable instance mangled name of function local
                    template
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: k.hara.pg gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg gmail.com> 2014-02-20 23:45:43 PST ---
Test case:

void foo(int)
{
    static struct S {}
    pragma(msg, " ", S.mangleof);

    void bar() {}
    pragma(msg, bar.mangleof);

    int var;
    pragma(msg, var.mangleof);

    template X(T) {}
    pragma(msg, "  ", X!int.mangleof);  // !
}
version(bug) void foo() {}

Without "-version=bug"

 S4test3fooFiZv1S
_D4test3fooFiZv3barMFZv
_D4test3fooFiZv3vari
  4test3fooFiZv8__T1XTiZ  <----

With "-version=bug"

 S4test3fooFiZv1S
_D4test3fooFiZv3barMFZv
_D4test3fooFiZv3vari
  4test3foo8__T1XTiZ      <---- changed!

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 20 2014
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12217


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull, wrong-code


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2014-02-21 02:07:45 PST ---
https://github.com/D-Programming-Language/dmd/pull/3312

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 21 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12217



--- Comment #2 from github-bugzilla puremagic.com 2014-02-21 08:32:16 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/9005833f089eca4945f3d7d520510d4ad55512ab
fix Issue 12217 - Unstable instance mangled name of function local template

https://github.com/D-Programming-Language/dmd/commit/d31dcfb825e548355972fee29d9fbd95a55807aa
Merge pull request #3312 from 9rnsr/fix12217

Issue 12217 - Unstable instance mangled name of function local template

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 21 2014
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12217


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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