[llvm-bugs] [Bug 33569] New: c++ filt unable to demangle enable_if attributes

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jun 23 09:32:33 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=33569

            Bug ID: 33569
           Summary: c++ filt unable to demangle enable_if attributes
           Product: new-bugs
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: dmaclach at gmail.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 18697
  --> https://bugs.llvm.org/attachment.cgi?id=18697&action=edit
source code to generate symbol that can't be demangled

__attribute__ ((__enable_if__(true, ""))) int foo() {
  return 0;
}

int main()
{
  return foo();
}

Compiling with

Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.6.0
Thread model: posix

generates a symbol of

_Z3fooUa9enable_ifIXLb1EEEv

for foo

which neither c++filt nor abi::__cxa_demangle can demangle.

These symbols are extremely common now in the C++ headers due to heavy use of
enable_if

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170623/420e2166/attachment.html>


More information about the llvm-bugs mailing list