Skip to content

Compiler frontend segfault on explicit template instantiation #48031

Closed
@llvmbot

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

bugzillaIssues migrated from bugzillac++17

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions