[Bug middle-end/88175] Showing header file instead of source code line for uninitialized variable

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Nov 24 00:39:00 GMT 2018


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

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
i.e. this would be wrong, because there is not 'copy' in test(info_t).

> So would be better if it was as follows:
> ===============================================
> 
> $ g++ -O2 -Werror=uninitialized -o header header.cpp
> header.cpp: In function ‘void test(info_t)’:
> header.cpp:10:12: error: ‘copy.info::registered’ is used uninitialized in


More information about the Gcc-bugs mailing list