This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

other/7356: misreports error location


>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]