[clang] [Clang] Implement CWG3005 Function parameters should never be name-independent (PR #138245)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Fri May 2 07:01:51 PDT 2025
erichkeane 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)
Ah! SGTM!
https://github.com/llvm/llvm-project/pull/138245
More information about the cfe-commits
mailing list