public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/56599] New: very confusing compiler diagnostics (for stupid bug on my part)
@ 2013-03-11 18:02 davecat49 at gmail dot com
  2013-03-11 18:12 ` [Bug c/56599] " pinskia at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: davecat49 at gmail dot com @ 2013-03-11 18:02 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 56599
           Summary: very confusing compiler diagnostics (for stupid bug on
                    my part)
    Classification: Unclassified
           Product: gcc
           Version: 4.5.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: davecat49@gmail.com


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c/56599] very confusing compiler diagnostics (for stupid bug on my part)
  2013-03-11 18:02 [Bug c/56599] New: very confusing compiler diagnostics (for stupid bug on my part) davecat49 at gmail dot com
@ 2013-03-11 18:12 ` pinskia at gcc dot gnu.org
  2013-03-11 18:33 ` davecat49 at gmail dot com
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu.org @ 2013-03-11 18:12 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2013-03-11 18:11:17 UTC ---
No info in bug.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c/56599] very confusing compiler diagnostics (for stupid bug on my part)
  2013-03-11 18:02 [Bug c/56599] New: very confusing compiler diagnostics (for stupid bug on my part) davecat49 at gmail dot com
  2013-03-11 18:12 ` [Bug c/56599] " pinskia at gcc dot gnu.org
@ 2013-03-11 18:33 ` davecat49 at gmail dot com
  2013-03-11 18:34 ` davecat49 at gmail dot com
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: davecat49 at gmail dot com @ 2013-03-11 18:33 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #2 from Dave <davecat49 at gmail dot com> 2013-03-11 18:32:51 UTC ---
Created attachment 29641
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29641
preprocesser output for first program


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c/56599] very confusing compiler diagnostics (for stupid bug on my part)
  2013-03-11 18:02 [Bug c/56599] New: very confusing compiler diagnostics (for stupid bug on my part) davecat49 at gmail dot com
  2013-03-11 18:12 ` [Bug c/56599] " pinskia at gcc dot gnu.org
  2013-03-11 18:33 ` davecat49 at gmail dot com
@ 2013-03-11 18:34 ` davecat49 at gmail dot com
  2013-03-11 18:43 ` davecat49 at gmail dot com
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: davecat49 at gmail dot com @ 2013-03-11 18:34 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #3 from Dave <davecat49 at gmail dot com> 2013-03-11 18:34:05 UTC ---
Created attachment 29642
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29642
preprocesser output for second program


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c/56599] very confusing compiler diagnostics (for stupid bug on my part)
  2013-03-11 18:02 [Bug c/56599] New: very confusing compiler diagnostics (for stupid bug on my part) davecat49 at gmail dot com
                   ` (2 preceding siblings ...)
  2013-03-11 18:34 ` davecat49 at gmail dot com
@ 2013-03-11 18:43 ` davecat49 at gmail dot com
  2013-03-11 18:45 ` davecat49 at gmail dot com
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: davecat49 at gmail dot com @ 2013-03-11 18:43 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #4 from Dave <davecat49 at gmail dot com> 2013-03-11 18:42:41 UTC ---
It looks as though it threw away everything I'd typed in when I added an
attachment, & then submitted the empty report. <sigh>

gcc produced extremely confusing error messages, referencing perfectly valid
line:columns, or (under debugging) referencing location in previously #included
header file.  The bug would have been easily recognized if anything had
indicated the correct location, but the messages weren't especially
descriptive.

Instead of pasting them in, I'll try attaching the programs as well, this time.
 See the .c versions & the error messages in the .txt files.  I guess I'm
supposed to post this, then attach?  I'll try it that way.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c/56599] very confusing compiler diagnostics (for stupid bug on my part)
  2013-03-11 18:02 [Bug c/56599] New: very confusing compiler diagnostics (for stupid bug on my part) davecat49 at gmail dot com
                   ` (3 preceding siblings ...)
  2013-03-11 18:43 ` davecat49 at gmail dot com
@ 2013-03-11 18:45 ` davecat49 at gmail dot com
  2013-03-11 18:47 ` davecat49 at gmail dot com
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: davecat49 at gmail dot com @ 2013-03-11 18:45 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #5 from Dave <davecat49 at gmail dot com> 2013-03-11 18:44:44 UTC ---
Created attachment 29643
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29643
first offending program

The compiler error output is as follows:
dlt8.c:7:22: error: expected ',' or ';' before numeric constant


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c/56599] very confusing compiler diagnostics (for stupid bug on my part)
  2013-03-11 18:02 [Bug c/56599] New: very confusing compiler diagnostics (for stupid bug on my part) davecat49 at gmail dot com
                   ` (4 preceding siblings ...)
  2013-03-11 18:45 ` davecat49 at gmail dot com
@ 2013-03-11 18:47 ` davecat49 at gmail dot com
  2013-03-11 18:50 ` pinskia at gcc dot gnu.org
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: davecat49 at gmail dot com @ 2013-03-11 18:47 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #6 from Dave <davecat49 at gmail dot com> 2013-03-11 18:46:35 UTC ---
Created attachment 29644
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29644
second offending program

Compiler error output for this one puts the error in stdio.h:

In file included from dlt9.c:2:0:
f:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/stdio.h:641:21:
error: expected ',' or ';' before numeric constant


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c/56599] very confusing compiler diagnostics (for stupid bug on my part)
  2013-03-11 18:02 [Bug c/56599] New: very confusing compiler diagnostics (for stupid bug on my part) davecat49 at gmail dot com
                   ` (5 preceding siblings ...)
  2013-03-11 18:47 ` davecat49 at gmail dot com
@ 2013-03-11 18:50 ` pinskia at gcc dot gnu.org
  2013-03-11 18:51 ` dave at firstcomp dot biz
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu.org @ 2013-03-11 18:50 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> 2013-03-11 18:49:38 UTC ---
Works on the trunk on x86_64-linux-gnu just fine:
dlt8.c:4:25: error: expected ‘,’ or ‘;’ before numeric constant
 #define  SAMPLELONGLONG 123456789012345
                         ^
dlt8.c:10:90: note: in expansion of macro ‘SAMPLELONGLONG’
    "Here we have some user info, wherein we stupidly try to include a numeric
constant " SAMPLELONGLONG;
                                                                               
          ^
apinski@apinskidesktop:~/Downloads$ ~/gcc-228/bin/gcc dlt9.c
dlt9.c:4:25: error: expected ‘,’ or ‘;’ before numeric constant
 #define  SAMPLELONGLONG 123456789012345
                         ^
dlt9.c:10:90: note: in expansion of macro ‘SAMPLELONGLONG’
    "Here we have some user info, wherein we stupidly try to include a numeric
constant " SAMPLELONGLONG;
                                                                               
          ^


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c/56599] very confusing compiler diagnostics (for stupid bug on my part)
  2013-03-11 18:02 [Bug c/56599] New: very confusing compiler diagnostics (for stupid bug on my part) davecat49 at gmail dot com
                   ` (6 preceding siblings ...)
  2013-03-11 18:50 ` pinskia at gcc dot gnu.org
@ 2013-03-11 18:51 ` dave at firstcomp dot biz
  2013-03-11 18:54 ` dave at firstcomp dot biz
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: dave at firstcomp dot biz @ 2013-03-11 18:51 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #8 from dave at firstcomp dot biz 2013-03-11 18:51:12 UTC ---
On Mon, Mar 11, 2013 at 2:11 PM, pinskia at gcc dot gnu.org
<gcc-bugzilla@gcc.gnu.org> wrote:
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56599
>
> --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2013-03-11 18:11:17 UTC ---
> No info in bug.
>
> --
> Configure bugmail: http://gcc.gnu.org/bugzilla/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You reported the bug.

I entered a complete description, then tried attaching the
preprocessor output.  It apparently threw away what I'd entered at
that point.  I've re-entered parts of it & attached more stuff.  I
guess I don't see how to attach without submitting?

-- Dave


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c/56599] very confusing compiler diagnostics (for stupid bug on my part)
  2013-03-11 18:02 [Bug c/56599] New: very confusing compiler diagnostics (for stupid bug on my part) davecat49 at gmail dot com
                   ` (7 preceding siblings ...)
  2013-03-11 18:51 ` dave at firstcomp dot biz
@ 2013-03-11 18:54 ` dave at firstcomp dot biz
  2013-03-11 18:58 ` dave at firstcomp dot biz
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: dave at firstcomp dot biz @ 2013-03-11 18:54 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #9 from dave at firstcomp dot biz 2013-03-11 18:54:10 UTC ---
As shown in other attachments, for me it generated references to other
lines (many lines away in the big program I tried to reduce this to),
& if I removed all earlier lines referencing a location in stdio.h !

-- Dave

On Mon, Mar 11, 2013 at 2:49 PM, pinskia at gcc dot gnu.org
<gcc-bugzilla@gcc.gnu.org> wrote:
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56599
>
> --- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> 2013-03-11 18:49:38 UTC ---
> Works on the trunk on x86_64-linux-gnu just fine:
> dlt8.c:4:25: error: expected ‘,’ or ‘;’ before numeric constant
>  #define  SAMPLELONGLONG 123456789012345
>                          ^
> dlt8.c:10:90: note: in expansion of macro ‘SAMPLELONGLONG’
>     "Here we have some user info, wherein we stupidly try to include a numeric
> constant " SAMPLELONGLONG;
>
>           ^
> apinski@apinskidesktop:~/Downloads$ ~/gcc-228/bin/gcc dlt9.c
> dlt9.c:4:25: error: expected ‘,’ or ‘;’ before numeric constant
>  #define  SAMPLELONGLONG 123456789012345
>                          ^
> dlt9.c:10:90: note: in expansion of macro ‘SAMPLELONGLONG’
>     "Here we have some user info, wherein we stupidly try to include a numeric
> constant " SAMPLELONGLONG;
>
>           ^
>
> --
> Configure bugmail: http://gcc.gnu.org/bugzilla/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You reported the bug.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c/56599] very confusing compiler diagnostics (for stupid bug on my part)
  2013-03-11 18:02 [Bug c/56599] New: very confusing compiler diagnostics (for stupid bug on my part) davecat49 at gmail dot com
                   ` (8 preceding siblings ...)
  2013-03-11 18:54 ` dave at firstcomp dot biz
@ 2013-03-11 18:58 ` dave at firstcomp dot biz
  2013-03-11 23:15 ` manu at gcc dot gnu.org
  2013-03-11 23:44 ` paolo.carlini at oracle dot com
  11 siblings, 0 replies; 13+ messages in thread
From: dave at firstcomp dot biz @ 2013-03-11 18:58 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #10 from dave at firstcomp dot biz 2013-03-11 18:58:00 UTC ---
I forgot to add when I reentered stuff.  This was from MinGW running
on Windows XP, but got same error messages on a Linux machine (sent it
to someone to check).  gcc --version shows this:
gcc (GCC) 4.5.2
I don't know how to tell what options the gcc was built with; I did
see that your "what we need listed that, but trying to figure it out I
came up with nothing.

-- Dave


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c/56599] very confusing compiler diagnostics (for stupid bug on my part)
  2013-03-11 18:02 [Bug c/56599] New: very confusing compiler diagnostics (for stupid bug on my part) davecat49 at gmail dot com
                   ` (9 preceding siblings ...)
  2013-03-11 18:58 ` dave at firstcomp dot biz
@ 2013-03-11 23:15 ` manu at gcc dot gnu.org
  2013-03-11 23:44 ` paolo.carlini at oracle dot com
  11 siblings, 0 replies; 13+ messages in thread
From: manu at gcc dot gnu.org @ 2013-03-11 23:15 UTC (permalink / raw)
  To: gcc-bugs


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

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> 2013-03-11 23:15:16 UTC ---
Dave, this bug seems to be fixed in the about to be released GCC 4.8.0


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c/56599] very confusing compiler diagnostics (for stupid bug on my part)
  2013-03-11 18:02 [Bug c/56599] New: very confusing compiler diagnostics (for stupid bug on my part) davecat49 at gmail dot com
                   ` (10 preceding siblings ...)
  2013-03-11 23:15 ` manu at gcc dot gnu.org
@ 2013-03-11 23:44 ` paolo.carlini at oracle dot com
  11 siblings, 0 replies; 13+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-03-11 23:44 UTC (permalink / raw)
  To: gcc-bugs


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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
      Known to work|                            |4.8.0
         Resolution|                            |FIXED

--- Comment #12 from Paolo Carlini <paolo.carlini at oracle dot com> 2013-03-11 23:44:13 UTC ---
Closing as fixed in mainline then.


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2013-03-11 23:44 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-11 18:02 [Bug c/56599] New: very confusing compiler diagnostics (for stupid bug on my part) davecat49 at gmail dot com
2013-03-11 18:12 ` [Bug c/56599] " pinskia at gcc dot gnu.org
2013-03-11 18:33 ` davecat49 at gmail dot com
2013-03-11 18:34 ` davecat49 at gmail dot com
2013-03-11 18:43 ` davecat49 at gmail dot com
2013-03-11 18:45 ` davecat49 at gmail dot com
2013-03-11 18:47 ` davecat49 at gmail dot com
2013-03-11 18:50 ` pinskia at gcc dot gnu.org
2013-03-11 18:51 ` dave at firstcomp dot biz
2013-03-11 18:54 ` dave at firstcomp dot biz
2013-03-11 18:58 ` dave at firstcomp dot biz
2013-03-11 23:15 ` manu at gcc dot gnu.org
2013-03-11 23:44 ` paolo.carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).