https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88320
--- Comment #4 from Jonny Grant <jg at jguk dot org> --- (In reply to Jonathan Wakely from comment #3) > (In reply to Jonny Grant from comment #0) > > Suggestion on line 5 of a variable which is acutally the return value, and > > doesn't exist yet. Better to only suggest alternative as variables that > > exist already in scope? > > The variable's scope begins after its name, so it is already in scope. yes, actually you're right. Maybe it doesn't matter, as it's only a suggestion, but changing it to the suggestion gives another warning, but would not in other cases (eg a std::string) var_suggest.cpp:6:9: warning: ‘aresult’ is used uninitialized in this function [-Wuninitialized] int aresult = aresult +1; Shall we close this ticket?