[llvm-bugs] [Bug 39192] New: Recursive concept leads to compiler ICE.
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Oct 5 12:41:16 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=39192
Bug ID: 39192
Summary: Recursive concept leads to compiler ICE.
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: brycelelbach at gmail.com
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
Defining a concept that recursively uses itself leads to a compiler ICE with
the experimental Clang concepts branch.
https://godbolt.org/z/4vRxyS
A repro is as follows:
template <typename T>
struct deferred_X;
template <typename T>
concept X = deferred_X<T>::template value<T>;
template <typename T>
struct deferred_X {
template <X U>
static constexpr bool value = true;
};
template <X> struct A{};
A<int> a;
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181005/dea15341/attachment.html>
More information about the llvm-bugs
mailing list