I reopened 'upstream'.

There is indeed no 'bug', as when you mark the pointer volatile, the
warning disappears.

But there is for sure either 'bad detection', or a detection of '*bar'
that can indeed be un-initialized but is reported as 'bar' being un-
initialized.

Thus it is not a 'bug' per se, as it conforms to the document that says
that in some case, uninitialized warning can appear where it should not,
but it is definitely a case where this can be improved.

So, not a 'bug' but an 'enhancement wish' with an example.

The link on gcc buzilla is:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54544

** Bug watch added: GCC Bugzilla #54544
   http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54544

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1008090

Title:
  Option -Wuninitialized does not work as documented with volatile

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.6/+bug/1008090/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to