[llvm-bugs] [Bug 38323] New: LLVM C++ demangler doesn't collapse references

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jul 25 22:12:33 PDT 2018


            Bug ID: 38323
           Summary: LLVM C++ demangler doesn't collapse references
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: pkmx.tw at gmail.com
                CC: llvm-bugs at lists.llvm.org

The managed name "_Z1fORi" is demangled by binutils as:

$ c++filt _Z1fORi

Here `ORi` translates to a "a rvalue-reference to lvalue-reference to int",
which is collapsed to a lvalue-reference to int under C++'s reference
collapsing rules.

However, LLVM's demangler doesn't collapse them:

$ llvm-cxxfilt _Z1fORi

which is an invalid function signature.

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/20180726/fc7ff684/attachment.html>

More information about the llvm-bugs mailing list