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

            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: unassignedb...@nondot.org
          Reporter: pkmx...@gmail.com
                CC: llvm-bugs@lists.llvm.org

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

$ c++filt _Z1fORi
f(int&)

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
f(int&&&)

which is an invalid function signature.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to