[llvm-bugs] [Bug 48687] New: Compiler frontend segfault on explicit template instantiation
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jan 7 09:17:53 PST 2021
https://bugs.llvm.org/show_bug.cgi?id=48687
Bug ID: 48687
Summary: Compiler frontend segfault on explicit template
instantiation
Product: clang
Version: 11.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: release blocker
Priority: P
Component: C++17
Assignee: unassignedclangbugs at nondot.org
Reporter: plasmacel at gmail.com
CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk
The following minimal example is enough to reproduce the problem on clang 11.0,
using the clang-cl interface on x86_64-pc-windows-msvc, regardless the
optimization level.
// A.h
template <typename T>
class A
{
public:
T value;
static constexpr auto address = &A<T>::value;
};
extern template class A<float>;
// A.cpp
#include "A.h"
template class A<float>;
--
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/20210107/d87246b8/attachment.html>
More information about the llvm-bugs
mailing list