This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gcc-in-cxx] Don't initialize variable to itself
2009/3/4 Andrew Pinski <pinskia@gmail.com>:
> On Wed, Mar 4, 2009 at 8:31 AM, Ian Lance Taylor <iant@google.com> wrote:
>> I committed this patch to the gcc-in-cxx branch to avoid initializing a
>> variable to itself. ?This avoids a warning from the C++ frontend.
>
> int a = a; should really disable the unitialized warning even in the
> C++ front-end. ?If it is not then it is a bug.
>
It is a known regression: http://gcc.gnu.org/PR34772
Cheers,
Manuel.