[Bug c++/86881] tree check fail with flag Wshadow-compatible-local
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86881 Nathan Sidwell changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed||2018-09-17 Assignee|unassigned at gcc dot gnu.org |nathan at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Nathan Sidwell --- No lambda's required. Just the outer one must have some kind of class type: struct Proxy { }; void Two () { auto my = Proxy (); { auto my = int (); // boom } }
[Bug c++/86881] tree check fail with flag Wshadow-compatible-local
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86881 Nathan Sidwell changed: What|Removed |Added CC||nathan at gcc dot gnu.org --- Comment #1 from Nathan Sidwell --- Created attachment 44708 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44708=edit A similar testcase