Open AaronBallman opened 6 months ago
@llvm/issue-subscribers-c-20
Author: Aaron Ballman (AaronBallman)
@llvm/issue-subscribers-clang-frontend
Author: Aaron Ballman (AaronBallman)
I spent some time looking into this, I confirm the bug but I struggle finding a solution, or an exact root cause.
Considering __builtin_FUNCTION value dependent causes AddTemplateOverloadCandidate
(for Call
) to fail.
I was not able to find where we look at value dependence of default values
This was found internally at Intel from some customer code. The original test case was stripped down to:
https://godbolt.org/z/qao5jhv1e
And with help from @Endilll it was further reduced to:
https://godbolt.org/z/3n3K46WT8
It's possibly worth noting that the behavior may be different on Windows than on Linux.
CC @cor3ntin