[Bug middle-end/23497] [4.1 regression] Bogus 'is used uninitialized...' warning about std::complex<T>

mark at codesourcery dot com gcc-bugzilla@gcc.gnu.org
Wed Nov 16 18:58:00 GMT 2005



------- Comment #31 from mark at codesourcery dot com  2005-11-16 18:58 -------
Subject: Re:  [4.1 regression] Bogus 'is used uninitialized...'
 warning about std::complex<T>

pinskia at gcc dot gnu dot org wrote:

> From the C perspective the warning is correct as you are loading piece wise
> which is not really supported at all, even shown by my integer testcase.

This is not a valid argument.

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.

Please explain why a user would want a warning on this code.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23497



More information about the Gcc-bugs mailing list