https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121553
--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> --- P2036 says that this: [x=1]{ int x; } should be rejected. clang++ warns about this with -Wshadow.
mpolacek at gcc dot gnu.org via Gcc-bugs Thu, 14 Aug 2025 10:17:54 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121553
--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> --- P2036 says that this: [x=1]{ int x; } should be rejected. clang++ warns about this with -Wshadow.