Re: [PATCH] c++: Check invalid use of constrained auto with trailing return type [PR100589]

2025-03-01 Thread xxie-xd
* Patrick Palka [2025-02-28 10:37:37]: > Hi, > > On Fri, 28 Feb 2025, Da Xie wrote: > > > This bug comes from a missing check when a function declaration has a > > late-specified return type and a constrained auto type specifier. By > > adding such a check, we can catch such uses and diagnose t

[PATCH] c++: Enhance -Wuninitialized to check private base class [PR80681]

2025-02-18 Thread xxie-xd
The issue described in PR80681 highlights a problem that: g++'s -Wuninitialized option does not warn when a privately inherited base class contains public const data or reference members, and the derived class does not have a user-provided constructor. Similarly, the same issue occurs when the pri