public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* other/8927: Gcc give error for wrong line of C code.
@ 2002-12-13  8:36 gp
  0 siblings, 0 replies; only message in thread
From: gp @ 2002-12-13  8:36 UTC (permalink / raw)
  To: gcc-gnats


>Number:         8927
>Category:       other
>Synopsis:       Gcc give error for wrong line of C code.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 13 08:36:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     gp@qnx.com
>Release:        unknown-1.0
>Organization:
>Environment:
Redhat Linux 7.3 on i586, gcc-3.3.
>Description:
With the following source, gcc complains of an error on lin 10, when the error is actually on line 6:

#include <stdio.h>

int main(int argc, char **argv)
{
        printf("Hi!\n");
asdfasdf



        return(0);
}

Gcc gives the following error:

    $ gcc hi.c
    hi.c: In function `main':
    hi.c:10: `asdfasdf' undeclared (first use in this function)
    hi.c:10: (Each undeclared identifier is reported only once
    hi.c:10: for each function it appears in.)
    hi.c:10: parse error before "return"
>How-To-Repeat:
compile the above source with "gcc hi.c"
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-12-13 16:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-13  8:36 other/8927: Gcc give error for wrong line of C code gp

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).