Compiler frontend segfault on explicit template instantiation #48031
Closed
Description
| Bugzilla Link | 48687 |
| Resolution | FIXED |
| Resolved on | Feb 12, 2021 12:58 |
| Version | 11.0 |
| OS | Windows NT |
| Reporter | LLVM Bugzilla Contributor |
| CC | @nico,@zygoloid,@rnk |
Extended Description
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
class A
{
public:
T value;
static constexpr auto address = &A<T>::value;
};
extern template class A;
// A.cpp
#include "A.h"
template class A;
Activity