[clang] [Clang] Implement CWG3005 Function parameters should never be name-independent (PR #138245)

via cfe-commits cfe-commits at lists.llvm.org
Fri May 2 07:00:50 PDT 2025


cor3ntin wrote:

> THIS example should also be ill-formed by CWG3005:
> 
> ```
> 
> struct S3 {
>    union {
>      int _;
>      };
>     int _; // error, the one in the union isn't type independent
> };
> ```

This is CWG2764 - I'll do that in a separate PR (and I need to open another issue because I think the wording fails to implement the intent) 

https://github.com/llvm/llvm-project/pull/138245


More information about the cfe-commits mailing list