https://bugs.llvm.org/show_bug.cgi?id=50821

            Bug ID: 50821
           Summary: ICEs and hangups: block scope + closure + dependent
                    explicit template arguments to call operator
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Keywords: compile-fail, crash-on-invalid
          Severity: enhancement
          Priority: P
         Component: C++2a
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]

Hangup:

```C++
template<auto F> struct quote { template<class... T> using fn =
decltype(F.template operator()<T...>(T{}...)); };
int main() {
  auto x  = []<class T>(T) {};
  using _ = quote<x>::fn<int>;
}
```

ICE:

```C++
template<auto F> struct quote { template<class... T> using fn =
decltype(F.template operator()<T...>(T{}...)); };
int main() {
  auto x  = []<class T>(T) {};
  using _ = quote<x>::fn<>;
}
```

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to