This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/42884] GCC (v4.3.3) fails to detect uninitialized variable
- From: "tstdenis at elliptictech dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jan 2010 14:08:52 -0000
- Subject: [Bug c/42884] GCC (v4.3.3) fails to detect uninitialized variable
- References: <bug-42884-18720@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from tstdenis at elliptictech dot com 2010-01-27 14:08 -------
(In reply to comment #4)
> Yes. I'm pretty sure we have duplicates in Bugzilla. Anyway, I just tested two
> other high quality compilers and they don't warn either. I don't think we can
> reach zero negatives in this area any time soon.
>
If this bug is a dupe please close this as resolved/dupe. I didn't check that
hard.
I think this is a bug because GCC attempts to resolve whether variables are
initialized or not and doesn't in this case. It's misleading to the user to
suggest it can do something it clearly cannot [in this case].
--
tstdenis at elliptictech dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|4.3.3 |unknown
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42884