-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[Clang] use constant evaluation context for constexpr if conditions #123667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
00b8b64
[Clang] use constant evaluation context for constexpr if conditions
a-tarasyuk df6fd0c
update tests to verify changes from c++20
a-tarasyuk ea51443
Merge branch 'main' of https://github.com/llvm/llvm-project into fix/…
a-tarasyuk 169adc7
Merge branch 'main' into fix/123524
a-tarasyuk bba89e7
ensure context is applied only during expression parsing
a-tarasyuk 666d5bf
update release notes
a-tarasyuk a1ac7f3
Merge branch 'fix/123524' of https://github.com/a-tarasyuk/llvm-proje…
a-tarasyuk adf82cf
Merge branch 'main' of https://github.com/llvm/llvm-project into fix/…
a-tarasyuk 5104a33
use immediately-invoked lambda expression
a-tarasyuk c95decb
Merge branch 'main' of https://github.com/llvm/llvm-project into fix/…
a-tarasyuk 0601f57
Merge branch 'main' into fix/123524
a-tarasyuk 4f95ceb
Merge branch 'main' into fix/123524
a-tarasyuk 1397ae4
move release notes to Bug Fixes to C++ Support section
a-tarasyuk 757eaad
Merge branch 'fix/123524' of https://github.com/a-tarasyuk/llvm-proje…
a-tarasyuk a632774
cleanup
a-tarasyuk aeba6a5
Merge branch 'main' into fix/123524
a-tarasyuk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| // RUN: %clang_cc1 -std=c++20 -verify=cxx20,expected %s | ||
| // RUN: %clang_cc1 -std=c++23 -verify=cxx23,expected %s | ||
| // RUN: %clang_cc1 -std=c++26 -verify=cxx26,expected %s | ||
|
|
||
| // expected-no-diagnostics | ||
|
|
||
| namespace GH123524 { | ||
| consteval void fn1() {} | ||
| void fn2() { | ||
| if constexpr (&fn1 != nullptr) { } | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.