Issue 55413
Summary Clang diagnostics issue: Candidate ignored without reason provided
Labels new issue
Assignees
Reporter jeremy-rifkin
    Pardon the large demo, this came up when resting something with a library I've been writing.

In this example, https://godbolt.org/z/1o4nr958b, clang errors

```cpp
<source>:1232:5: error: no matching function for call to 'foo'
    foo<bar(2)>();
    ^~~~~~~~~~~
<source>:1224:22: note: candidate template ignored: invalid explicitly-specified argument for template parameter 'X'
template<int X> void foo() {}
                     ^
```

Without providing a reason why the template is ignored. GCC reports that the macro is expanding to have a problematic local `static` variable.

Similarly after removing the `static` qualifiers there are other problems with calling non-constexpr functions but clang still does not provide a diagnostic as to why the explicitly-specified argument is invalid https://godbolt.org/z/7xGrecxfe.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to