aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorCorentin Jabot <corentinjabot@gmail.com>2022-10-23 17:32:58 +0200
committerCorentin Jabot <corentinjabot@gmail.com>2022-11-04 14:46:38 +0100
commit7acfe3629479c8489fc2d7f629994dc200be990c (patch)
treecc96d405f69d4d1c07654468d742815cdb4be591 /flang/lib/Frontend/CompilerInvocation.cpp
parent96ad51e3ebafdaed345a699d752ee4d96b00d82c (diff)
downloadllvm-7acfe3629479c8489fc2d7f629994dc200be990c.zip
llvm-7acfe3629479c8489fc2d7f629994dc200be990c.tar.gz
llvm-7acfe3629479c8489fc2d7f629994dc200be990c.tar.bz2
Implement CWG2631
Implement https://cplusplus.github.io/CWG/issues/2631.html. Immediate calls in default arguments and defaults members are not evaluated. Instead, we evaluate them when constructing a `CXXDefaultArgExpr`/`BuildCXXDefaultInitExpr`. The immediate calls are executed by doing a transform on the initializing expression. Note that lambdas are not considering subexpressions so we do not need to transform them. As a result of this patch, unused default member initializers are not considered odr-used, and errors about members binding to local variables in an outer scope only surface at the point where a constructor is defined. Reviewed By: aaron.ballman, #clang-language-wg Differential Revision: https://reviews.llvm.org/D136554
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions