Repository navigation
Commit 3251cbc
committed
Consider explicit conversions before aggregate fallback []
Allow explicit conversion functions when matching the implicit copy constructor during single-argument direct-initialization, preventing premature C++20 aggregate fallback.
Extend EDGcpfe24743 to cover explicit conversion functions.
Signed-off-by: Yihan Wang <yronglin777@gmail.com>1 parent f0e30b6 commit 3251cbc
5 files changed
Lines changed: 16 additions & 20 deletions
File tree
- src
- tests/tests
- changes
- imported/clang/cpp/SemaCXX
- .cxx2a-explicit-bool.rto
- .explicit.rto
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30702 | 30702 | | |
30703 | 30703 | | |
30704 | 30704 | | |
| 30705 | + | |
| 30706 | + | |
| 30707 | + | |
30705 | 30708 | | |
30706 | 30709 | | |
30707 | 30710 | | |
30708 | 30711 | | |
30709 | | - | |
| 30712 | + | |
| 30713 | + | |
30710 | 30714 | | |
30711 | 30715 | | |
30712 | 30716 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27542 | 27542 | | |
27543 | 27543 | | |
27544 | 27544 | | |
27545 | | - | |
| 27545 | + | |
| 27546 | + | |
| 27547 | + | |
27546 | 27548 | | |
27547 | 27549 | | |
27548 | 27550 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | 479 | | |
488 | 480 | | |
489 | 481 | | |
| |||
683 | 675 | | |
684 | 676 | | |
685 | 677 | | |
686 | | - | |
| 678 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | 26 | | |
35 | 27 | | |
36 | 28 | | |
| |||
171 | 163 | | |
172 | 164 | | |
173 | 165 | | |
174 | | - | |
| 166 | + | |
0 commit comments