diff options
author | cor3ntin <corentinjabot@gmail.com> | 2024-09-04 10:38:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-04 10:38:18 +0200 |
commit | 030e4d0cdf4c43a6ec1ca301b5a358991fa2ac4f (patch) | |
tree | 4dfee80f4b79eb4ccf995607ba3f2dd7aa3c937a /llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp | |
parent | 12d678a8eb11821e20eab86445f0cc9b66c24990 (diff) | |
download | llvm-030e4d0cdf4c43a6ec1ca301b5a358991fa2ac4f.zip llvm-030e4d0cdf4c43a6ec1ca301b5a358991fa2ac4f.tar.gz llvm-030e4d0cdf4c43a6ec1ca301b5a358991fa2ac4f.tar.bz2 |
[Clang] Treat default template argument as constant expressions (#107073)
We only check that a default argument is a converted constant expression
when using the default argument.
However, when parsing a default argument, we need to make sure to parse
it as a constant expression such as not ODR-use variables. (otherwise,
we would try to capture default template arguments of generic lambdas)
Fixes #107048
Diffstat (limited to 'llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp')
0 files changed, 0 insertions, 0 deletions