https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60517
Fredrik Hederstierna <fredrik.hederstie...@securitas-direct.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fredrik.hederstierna@securi | |tas-direct.com --- Comment #19 from Fredrik Hederstierna <fredrik.hederstie...@securitas-direct.com> --- It is the SRA pass that sets TREE_NO_WARNING in function from "tree-sra.c": "create_access_replacement (struct access *access)". Since acccess-base is set to ARTIFICIAL and IGNORED, the else-case is taken, setting: TREE_NO_WARNING (repl) = 1; If removing this line we will get a warning in "tree-ssa-uninit.c": test.c:120:14: warning: 'SR.1' is used uninitialized in this function [-Wuninitialized] return x[0]; ^ Though the generated name is not looking good, if forcing SRA to make a name it end up with instead: test.c:120:14: warning: '<anonymous>' is used uninitialized in this function [-Wuninitialized] return x[0]; I'm not sure where to take it from here, suggestions?