Issue 239354
Summary Constexpr function reference is not invocable
Labels new issue
Assignees
Reporter vasama
    ```cpp
struct x
{
    template<typename T>
 static void f(T);
};

template<typename T>
struct y
{
 template<typename U>
    static constexpr auto& f = T::template f<U>;
};

void f()
{
    // error: called object type 'void (&)(int)' is not a function or function pointer
    y<x>::f<int>(0);
}
```

[Compiler Explorer](https://godbolt.org/z/z4enfaf34)
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to