diff options
author | Mariya Podchishchaeva <mariya.podchishchaeva@intel.com> | 2023-03-07 11:33:57 -0500 |
---|---|---|
committer | Mariya Podchishchaeva <mariya.podchishchaeva@intel.com> | 2023-03-07 11:46:26 -0500 |
commit | a2739f111d9795fe49109c26c2d816436f2143c3 (patch) | |
tree | 4d150cf160935aca119df229e5a1ca6c11d4fc0c /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | f1440bf6fd22ca0a5fc3594000e966201989fd48 (diff) | |
download | llvm-a2739f111d9795fe49109c26c2d816436f2143c3.zip llvm-a2739f111d9795fe49109c26c2d816436f2143c3.tar.gz llvm-a2739f111d9795fe49109c26c2d816436f2143c3.tar.bz2 |
[clang] Treat function parameter scope as an immediate function context
This results in expressions that appear in default function argument not
being checked for being actual constant expressions.
This aligns clang's behavior with the standard and fixes one of the
examples from https://wg21.link/P1073R3.
Reviewed By: shafik, cor3ntin
Differential Revision: https://reviews.llvm.org/D145251
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions