https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78147
Pierre Ossman <ossman at cendio dot se> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ossman at cendio dot se
--- Comment #9 from Pierre Ossman <ossman at cendio dot se> ---
I'd like to add a dissenting voice. I think the current behaviour is useful.
In your simple example, yes, it provides no value. But in a more complex
constructor with a body, then it's important to access the *member* foo, not
the *argument* foo. Otherwise, you might modify the wrong thing.