This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/23497] [4.1 regression] Bogus 'is used uninitialized...' warning about std::complex<T>
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Nov 2005 19:58:07 -0000
- Subject: [Bug middle-end/23497] [4.1 regression] Bogus 'is used uninitialized...' warning about std::complex<T>
- References: <bug-23497-2589@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #32 from pinskia at gcc dot gnu dot org 2005-11-16 19:58 -------
(In reply to comment #31)
> This is not a valid argument.
What would you consider a valid argument for an extension which is not that
well documented?
> The point of warnings is not to tell the user how the compiler works;
> it's to tell the user that their code is in some way suspect.
Wait this is an extension to the language.
> Please explain why a user would want a warning on this code.
I should also note that:
http://gcc.gnu.org/onlinedocs/gcc/Complex.html#Complex
recomends against using the extensions anyways.
I should note that page does not talk about __imag__ b being a lvalue at all.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23497