www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12236] New: Inconsistent mangleof result

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

           Summary: Inconsistent mangleof result
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: k.hara.pg gmail.com



In both cases, getting mangleof should cause forward reference error.

Test case:

auto f1(int)
{
    pragma(msg, f1.mangleof);  // forward reference error -> OK
}
auto f2(T)(T)
{
    pragma(msg, f2.mangleof);  // weird output: "v"
}

void main()
{
    f1(1);
    f2(1);
}

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


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

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



https://github.com/D-Programming-Language/dmd/pull/3370

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