other/7356: misreports error location

jastrother@hotmail.com jastrother@hotmail.com
Fri Jul 19 03:26:00 GMT 2002


>Number:         7356
>Category:       other
>Synopsis:       misreports error location
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 19 02:26:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     jastrother@hotmail.com
>Release:        2.95
>Organization:
>Environment:
redhat 7.2
>Description:
if a syntax error is made before any includes, then gcc reports the error as occuring before the first line of the first include. while this is right, it all hell to find the actual mistake. for example

a//sample
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int main(int argc, char** argc) {}

will report a syntax error in an included file of an included file of stdlib.h
>How-To-Repeat:

>Fix:

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



More information about the Gcc-bugs mailing list