[Bug c++/85505] Code accepted despite a variable using the same name as a parameter

2025-01-07 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85505 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug c++/85505] Code accepted despite a variable using the same name as a parameter

2025-01-07 Thread abbeyj+gcc at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85505 --- Comment #3 from James Abbatiello --- I ran into this again. I can confirm that it still affects the latest trunk. https://gcc.godbolt.org/z/W79a1vvWa succeeds when it should be rejected. Is there any chance that somebody could take another

[Bug c++/85505] Code accepted despite a variable using the same name as a parameter

2018-04-24 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85505 --- Comment #2 from Jonathan Wakely --- Yes, the scope is the same so it's a redefinition in the same scope, not shadowing.

[Bug c++/85505] Code accepted despite a variable using the same name as a parameter

2018-04-24 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85505 Richard Biener changed: What|Removed |Added CC||nathan at gcc dot gnu.org --- Comment #

[Bug c++/85505] Code accepted despite a variable using the same name as a parameter

2018-04-23 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85505 Jonathan Wakely changed: What|Removed |Added Keywords||accepts-invalid Status|UNC