http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55446
Harald van Dijk <harald at gigawatt dot nl> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |harald at gigawatt dot nl
--- Comment #6 from Harald van Dijk <harald at gigawatt dot nl> 2012-11-24
09:28:44 UTC ---
A compile-only test for this can be
struct S { S(); };
void f(S *);
void g() {
S *s = new S[0];
f(s);
}
which causes a bogus warning:
test.cc: In function 'void g()':
test.cc:5:7: warning: 's' is used uninitialized in this function
[-Wuninitialized]