Repository navigation
Commit ba74606
Fix #15080 FP uninitMemberVarNoCtor for const and reference members
A class without constructor whose non-static const or reference member has
no default member initializer is not default constructible (or, for a const
class type with a default constructor, default constructs it), so the member
can never be left uninitialized.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent fa6c1f1 commit ba74606
2 files changed
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
376 | 380 | | |
377 | 381 | | |
378 | 382 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
797 | 797 | | |
798 | 798 | | |
799 | 799 | | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
800 | 817 | | |
801 | 818 | | |
802 | 819 | | |
| |||
0 commit comments