[llvm-bugs] [Bug 33602] New: c++ filt unable to demangle lambdas in destructors

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jun 26 13:43:33 PDT 2017


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

            Bug ID: 33602
           Summary: c++ filt unable to demangle lambdas in destructors
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: dmaclach at gmail.com
                CC: llvm-bugs at lists.llvm.org

#include <exception>
#include <functional>

class Impl {
  public:
  template <typename F> void ImplTemplateFunc(F&& f)
  {
    return f();
  }

  ~Impl() {
    ImplTemplateFunc([] {
      printf("Hello");
    });
  }
};

int main() {
  Impl a;
  return 0;
}

Generates the mangled symbol __ZN4Impl16ImplTemplateFuncIZNS_D1EvEUlvE_EEvOT_
for the call to ImplTemplateFunc in ~Impl.

c++filt is unable to demangle it.

-- 
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/20170626/5f0feb11/attachment.html>


More information about the llvm-bugs mailing list