[Bug c++/82899] *this in constructors could not alias with reference input parameters of the same type

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Nov 8 13:31:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82899

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Antony Polukhin from comment #3)
> BTW, Clang warns on code like Y y(y)
> 
> warning: variable 'y' is uninitialized when used within its own
> initialization [-Wuninitialized]
>   Y y(y);
>     ~ ^
> 
> GCC may add same warning

Can you open a bugreport?


More information about the Gcc-bugs mailing list