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

            Bug ID: 41378
           Summary: Parser segmentation fault
           Product: clang
           Version: 7.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]

Created attachment 21730
  --> https://bugs.llvm.org/attachment.cgi?id=21730&action=edit
crash dump, preprocessed source, and associated run script.

Parsing of the following invalid code crashes with segmentation fault.

#include <memory>

template<class T>
class A {
  std::unique_ptr<T> a;

  ~A() {
    const auto a_ptr = &a;
    a_ptr->template ~std::unique_ptr<T>();
  }
};

int main() {
  A<int> a;
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to