Thread overview
[Issue 7030] New: const method mangling of extern(C++) structs
Nov 29, 2011
dawg@dawgfoto.de
Nov 29, 2011
dawg@dawgfoto.de
Nov 02, 2012
yebblies
November 29, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=7030

           Summary: const method mangling of extern(C++) structs
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: dawg@dawgfoto.de


--- Comment #0 from dawg@dawgfoto.de 2011-11-29 08:29:58 PST ---
extern(C++)
{
    struct S
    {
        void foo(int) const;
    }
}
pragma(msg, S.foo.mangleof);

// On POSIX
// prints   : _ZN1S3fooEi
// should be: _ZNK1S3fooEi
---

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
November 29, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=7030



--- Comment #1 from dawg@dawgfoto.de 2011-11-29 10:02:54 PST ---
current workaround:
declare const as enclosing storage class

const
{
  void foo(int);
}

or

const void foo(int);

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
November 02, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7030



--- Comment #2 from github-bugzilla@puremagic.com 2012-11-01 21:33:36 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/337731feffefaa969d424a8bd6571eedbc9bd1a9 test for Bug7030

https://github.com/D-Programming-Language/dmd/commit/2adbd46934045f7ea6d0d5927d2c603422c5cfb7 fix Bug7030

- use method type for const mangling instead of const qualifier from
  declaration

https://github.com/D-Programming-Language/dmd/commit/1dc9007c28445dacac1b44b4daca13293e9017b3 Merge pull request #543 from dawgfoto/Bug7030

Bug7030

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
November 02, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7030


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies@gmail.com
         Resolution|                            |FIXED


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