[llvm-bugs] [Bug 50821] New: ICEs and hangups: block scope + closure + dependent explicit template arguments to call operator

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jun 23 11:33:25 PDT 2021


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: unassignedclangbugs at nondot.org
          Reporter: johelegp at gmail.com
                CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
                    johelegp at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210623/598ad009/attachment.html>


More information about the llvm-bugs mailing list