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: unassignedclangb...@nondot.org
          Reporter: brycelelb...@gmail.com
                CC: dgre...@apple.com, llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to