[clang] [RFC] Initial implementation of P2719 (PR #113510)
Oliver Hunt via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 14 11:46:52 PDT 2025
ojhunt wrote:
> We have tracked down a new and spurious "This variable is used uninitialized" to this PR. I'm working on a reduced test case now. It looks like this:
>
> ```
> <redacted>.cpp:XXX+2:13: error: variable 'new_section' is uninitialized when used here [-Werror,-Wuninitialized]
> 572 | new_section->SetNext(file_mod->Next()) ;
>
> | ^~~~~~~~~~~
> <redacted>.cpp:XXX:33: note: initialize the variable 'new_section' to silence this warning
> 570 | FileMod *new_section = new FileMod(insert_line, insert_col) ;
> | ^
> ```
>
> There is no control flow on line XXX+1.
Does FileMode have custom operator new or delete?
https://github.com/llvm/llvm-project/pull/113510
More information about the cfe-commits
mailing list