Red Hat Bugzilla – Bug 174593
Update broke gcc ? .../4.0.2/include/stddef.h:214: error: syntax error before `typedef'
Last modified: 2007-11-30 17:11:18 EST
Description of problem:
/usr/lib/gcc/i386-redhat-linux/4.0.2/include/stddef.h:214: error: syntax error
Version-Release number of selected component (if applicable):
Just updated gcc.
rpm -q gcc
Steps to Reproduce:
1. Worked on same code all day yesterday with no problem.
2. gcc-4.0.2 was installed yesterday.
3. This morning, first project build I get the error above.
Error indicated. There is nothing wrong with the stddef file.
As yesterday. No errors.
I have been using gcc-4 without problems since I updated to FC4, shortly after
it came out.
Please provide preprocessed source of the file on which you can reproduce it
(and ideally -E -dD output as well) and exact gcc (resp. g++) command line
options used to compile that. Without that info we can't do anything for you.
From the files that have been set by mail privately to me, I see:
# 1 "ralloc.c"
# 28 "ralloc.c"
typedef unsigned int size_t;
How does the first line in ralloc.c look like? Guess there is a typo or
something like that.
Corrupted source file, ralloc.c.
Sorry to waste your time.