[Bug 191365] New: Name demangling doesn't work for local names

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Jun 25 13:38:21 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191365

            Bug ID: 191365
           Summary: Name demangling doesn't work for local names
           Product: Base System
           Version: 9.2-RELEASE
          Hardware: Any
                OS: Any
            Status: Needs Triage
          Severity: Affects Only Me
          Priority: ---
         Component: standards
          Assignee: freebsd-standards at FreeBSD.org
          Reporter: ikosarev at accesssoftek.com

The C++ ABI's __cxa_demangle() function rejects unscoped/local/static names.

The attached test outputs:

_Z9NullDerefPi: status 0; demangled: 'NullDeref(int*)'
_ZL9NullDerefPi: status -2

The expected output is:

_Z9NullDerefPi: status 0; demangled: 'NullDeref(int*)'
_ZL9NullDerefPi: status 0; demangled: 'NullDeref(int*)'

Obvisouly, the reason of the rejection is the 'L' in front of the 2nd
identifier. That letter reflects the fact the name is declared static:

static void NullDeref(int*);

This defect prevents the LLVM's address sanitizer test null_deref.cc from
passing on FreeBSD 9.2 .

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-standards mailing list