Commit 9ce04c8
committed
[clang] Fix potential constant expression checking with constexpr-unknown.
0717657 improved constexpr-unkown
diagnostics, but potential constant expression checking broke in the
process: we produce diagnostics in more cases. Supress the diagnostics
as appropriate.
This fix affects -Winvalid-constexpr and the enable_if attribute. (The
-Winvalid-constexpr diagnostic isn't really important right now, but it
will become important if we allow constexpr-unknown with pre-C++23
standards.)
Fixes #149041. Fixes #149188.1 parent 703501e commit 9ce04c8
File tree
3 files changed
+36
-4
lines changed- clang
- lib/AST
- test/SemaCXX
3 files changed
+36
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4450 | 4450 | | |
4451 | 4451 | | |
4452 | 4452 | | |
4453 | | - | |
| 4453 | + | |
| 4454 | + | |
4454 | 4455 | | |
4455 | 4456 | | |
4456 | 4457 | | |
| |||
4491 | 4492 | | |
4492 | 4493 | | |
4493 | 4494 | | |
4494 | | - | |
4495 | | - | |
4496 | | - | |
| 4495 | + | |
| 4496 | + | |
| 4497 | + | |
| 4498 | + | |
| 4499 | + | |
4497 | 4500 | | |
4498 | 4501 | | |
4499 | 4502 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
0 commit comments