[Bug tree-optimization/116090] Another -Wmaybe-uninitialized false positive with std::optional

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jul 25 15:48:29 GMT 2024


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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Created attachment 58757
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58757&action=edit
Slightly reduced

if we change opt_c  to be bool rather than `unsigned char`, there is no
warning. I have not looked into why.

Note SRA uses `unsigned char` here for bool fields and that seemly is the
issue.


More information about the Gcc-bugs mailing list