[llvm-bugs] [Bug 41378] New: Parser segmentation fault
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Apr 4 08:14:55 PDT 2019
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: unassignedclangbugs at nondot.org
Reporter: gssm at protonmail.com
CC: blitzrakete at gmail.com, dgregor at apple.com,
erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
richard-llvm at metafoo.co.uk
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190404/9e7143c7/attachment-0001.html>
More information about the llvm-bugs
mailing list