c/699: Specific Parse Error Causes Seg Fault
jbnance@tresgeek.net
jbnance@tresgeek.net
Fri Oct 27 14:36:00 GMT 2000
>Number: 699
>Category: c
>Synopsis: Specific Parse Error Causes Seg Fault
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Oct 27 14:36:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Jason Nance
>Release: gcc version 2.96 20000731
>Organization:
>Environment:
Red Hat Linux 7.0, Intel PIII 600 (Katmai) with 256 MB RAM
>Description:
My crappy IDE controller spits out a "`" every few seconds if there isn't any input.
This happened at the beginning of a 'C' file I was working on, and I didn't notice it.
When I compiled, I always got the error messages included.
kills.c:1: parse error before ``'
In file included from /usr/include/bits/types.h:166,
from /usr/include/stdio.h:41,
from kills.c:4:
/usr/include/bits/pthreadtypes.h:48: parse error before `size_t'
/usr/include/bits/pthreadtypes.h:48: warning: no semicolon at end of struct or union
/usr/include/bits/pthreadtypes.h:51: parse error before `__stacksize'
/usr/include/bits/pthreadtypes.h:51: warning: data definition has no type or storage class
/usr/include/bits/pthreadtypes.h:52: warning: data definition has no type or storage class
In file included from /usr/include/_G_config.h:45,
from /usr/include/libio.h:31,
from /usr/include/stdio.h:70,
from kills.c:4:
/usr/include/gconv.h:71: parse error before `size_t'
/usr/include/gconv.h:84: parse error before `size_t'
/usr/include/gconv.h:93: parse error before `size_t'
/usr/include/gconv.h:169: parse error before `size_t'
/usr/include/gconv.h:169: warning: no semicolon at end of struct or union
/usr/include/gconv.h:172: parse error before `}'
/usr/include/gconv.h:172: warning: data definition has no type or storage class
In file included from /usr/include/libio.h:31,
from /usr/include/stdio.h:70,
from kills.c:4:
/usr/include/_G_config.h:47: field `__cd' has incomplete type
/usr/include/_G_config.h:50: field `__cd' has incomplete type
/usr/include/_G_config.h:53: Internal error: Segmentation fault.
Please submit a full bug report.
See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.
>How-To-Repeat:
The attached file is what I found to be the bare minimum
required to repeat this situation. I know that it wouldn't
compile anyway, but even if you add a main with a "hello
world" print statement, it still happens. Or if you include
other libraries, it still happens.
>Fix:
Better programming on the users' part. =)
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="kills.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="kills.c"
YAoKI2luY2x1ZGUgPHN0ZGlvLmg+Cg==
More information about the Gcc-bugs
mailing list