This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Need suggestion about bug 68425
- From: Manuel LÃpez-IbÃÃez <lopezibanez at gmail dot com>
- To: David Malcolm <dmalcolm at redhat dot com>
- Cc: Prasad Ghangal <prasad dot ghangal at gmail dot com>, Joseph Myers <joseph at codesourcery dot com>, Prathamesh Kulkarni <prathamesh dot kulkarni at linaro dot org>, gcc Mailing List <gcc at gcc dot gnu dot org>
- Date: Fri, 4 Mar 2016 19:50:44 +0000
- Subject: Re: Need suggestion about bug 68425
- Authentication-results: sourceware.org; auth=none
- References: <CAE+uiWYLZ6ODDc3nR3zgAdxekTtSAD10Ba3pqJ4Y--FJYo5Fig at mail dot gmail dot com> <56C5D529 dot 9080700 at gmail dot com> <1455909237 dot 9333 dot 34 dot camel at redhat dot com> <CAESRpQA4_+f==EyAdre64OOcLYD2KBFFhhpyLb0Z_nrG9kfuXw at mail dot gmail dot com> <CAE+uiWaua28sLnrrVNmZo4Y0S-qJnbh-qWRQHA8prNCDuijQ4A at mail dot gmail dot com> <alpine dot DEB dot 2 dot 10 dot 1602222137340 dot 26576 at digraph dot polyomino dot org dot uk> <CAE+uiWYBPq0aWp=aA=JCDUkLATGx4MwhbEQu1+Bf2NrAyuWrrw at mail dot gmail dot com> <1457120185 dot 1637 dot 49 dot camel at redhat dot com>
On 4 March 2016 at 19:36, David Malcolm <dmalcolm@redhat.com> wrote:
> Those caret locations look wrong to me - they don't seem to be
> underlining the pertinent source. Is that what the patched compiler is
> printing, or did things get messed up somewhere via email?
Probably Gmail sucks at sending plain text. It sucks also for reading
plain text.
> 68425.c:9:37: warning: excess elements in array initializer (6
> elements,
> expected 3)
> const int array6[3] = {1, 2, 3, 6, 89, 193};
>
> ~ ^~~~~~~~~~
This is so f*****g cool you almost brought me to tears! David, where
have you been hiding all these years and what are you going to fix
next in GCC?
> Or do that in the followup note, for something like:
>
> 68425.c:9:37: warning: excess elements in array initializer (6
> elements, expected 3)
> const int array6[3] = {1, 2, 3, 6, 89, 193};
> ^~~~~~~~~~
> 68425.c:9:12: note: (near initialization for âarray6â)
> const int array6[3] = {1, 2, 3, 6, 89, 193;
> ^
A follow-up note seems just clutter at this point. It was just there
because we could not give a precise location (this is why we say the
awkward "near initialization..."). Your previous proposal is just
perfect. How would it work if the '~' and the '^' are on separate
lines?
> but maybe that's over-ambitious for now.
Now that we can, we should be :-)
Cheers,
Manuel.