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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to