summaryrefslogtreecommitdiff
path: root/lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp
diff options
context:
space:
mode:
authorMatheus Izvekov <mizvekov@gmail.com>2025-01-28 15:51:17 -0300
committerGitHub <noreply@github.com>2025-01-28 15:51:17 -0300
commite29c085812e259910a3d8b6c2d2f471d1c3eede4 (patch)
tree712c59ba2e5d0feba7d8aea3b3f1326207c19181 /lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp
parenteb10e94180dd722cf54cfaf1ed9d32aa0bb134a0 (diff)
[clang] disallow narrowing when matching template template parameters (#124313)
This fixes the core issue described in P3579, following the design intent of P0522 to not introduce any new cases where a template template parameter match is allowed for a template which is not valid for all possible uses. With this patch, narrowing conversions are disallowed for TTP matching. This reuses the existing machinery for diagnosing narrowing in a converted constant expression. Since P0522 is a DR and we apply it all the way back to C++98, this brings that machinery to use in older standards, in this very narrow scope of TTP matching. This still doesn't solve the ambiguity when partial ordering NTTPs of different integral types, this is blocked by a different bug which will be fixed in a subsequent patch (but the test cases are added).
Diffstat (limited to 'lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp')
0 files changed, 0 insertions, 0 deletions