Red Hat Bugzilla – Bug 57122
Internal error: Segmentation fault (program cpp0)
Last modified: 2007-04-18 12:38:34 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
Description of problem:
gcc crashes with segmentation fault when i try to compile C source file
with certain error.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. command line: gcc -D'MD5Name(x)=#Broken##x' test.c
int main ()
Actual Results: gcc emits diagnostics:
<command line>: '#' is not followed by a macro parameter
gcc: Internal error: Segmentation fault (program cpp0)
Please submit a full bug report.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.
gcc also creates core dump in current directory
Expected Results: compile-time error
I will try to attach core dump and test.c files
Created attachment 39690 [details]
source file needed to reproduce bug
Created attachment 39691 [details]
The ICE was fixed in gcc-2.96-100, though the warning is correct,
such argument is bogus.
If you want to stringify the whole thing (which I belive because you're passing
it to printf), then it should be
gcc -D'MD5Name(x)="Broken" #x' test.c
*** This bug has been marked as a duplicate of 54380 ***