swiftlang/swift

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

已关闭

#56,799 创建于 2021年4月3日

 (13 条评论) (0 个反应) (0 位负责人)Swift (10,719 个派生)batch import
bugc++ interopcompilergood first issue

仓库指标

星标
 (69,989 个星标)
PR 合并指标
 (平均合并 8天 17小时) (30 天内合并 510 个 PR)

描述

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>;

贡献者指南