This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
other/7356: misreports error location
- From: jastrother at hotmail dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 19 Jul 2002 09:16:30 -0000
- Subject: other/7356: misreports error location
- Reply-to: jastrother at hotmail dot com
>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: