[Bug middle-end/39246] FAIL: gcc.dg/uninit-13.c

manu at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jun 19 21:00:00 GMT 2013


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

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu.org

--- Comment #11 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to meadori from comment #10)
> I just bumped into this again while looking through some XFAILS.
> I think Andreas' analysis is correct, but I am not sure how to
> fix the problem.

This explanation would be clearer if you used the option -lineno (or -all) when
dumping.

Ideally, the warning should be given in "return f". Perhaps there is a way to
adjust the locations?

I guess that for:

     4  typedef _Complex float C;
     5  C foo()
     6  {
     7    C f;
     8    __imag__ f = 0;       /* { dg-warning "is used" "unconditional" } */
          __real__ f = 0;
     9    return f;
    10  }

there is no warning, no?


More information about the Gcc-bugs mailing list