swiftlang/swift

[SR-14443] [C++] Don't crash on invalid dependent values.

Closed

#56,799 opened on Apr 3, 2021

 (13 comments) (0 reactions) (0 assignees)Swift (10,719 forks)batch import
bugc++ interopcompilergood first issue

Repository metrics

Stars
 (69,989 stars)
PR merge metrics
 (Avg merge 8d 17h) (510 merged PRs in 30d)

Description

Previous ID SR-14443
Radar rdar://problem/83367285
Original Reporter @zoecarver
Type Bug
Votes 0
Component/s Compiler
Labels Bug, CxxInterop, StarterBug
Assignee Rajagopalan (JIRA)
Priority Medium

md5: f34665bb62c6ff5d157cb3bd483d8006

Issue Description:

A while theindigamer (JIRA User) found this compiler crasher and I never got around to fixing it or creating a bug for it.

struct S {};
template <class T>
 struct IsSubtypeSame {
   static constexpr const S value = T();
};

using Invalid = IsSubtypeSame<int>;

Contributor guide