------- Comment #4 from caolanm at redhat dot com 2009-08-27 11:17 ------- Created an attachment (id=18436) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18436&action=view) smaller test-case
Here's a smaller one, perturbing nearly any line in this makes the warning go away, various sample lines are commented as such in this 100 line example. Like before... g++ -DTEST -O2 -c -Wall foo.cxx no warnings, while g++ -O2 -c -Wall foo.cxx foo.cxx: In function 'bool demo()': foo.cxx:83: warning: '<anonymous>' is used uninitialized in this function foo.cxx:83: note: '<anonymous>' was declared here -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40146