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): How reproducible: Always Steps to Reproduce: 1. command line: gcc -D'MD5Name(x)=#Broken##x' test.c test.c: #include <stdio.h> int main () { printf (MD5Name(SLAWA)); return 0; } 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 Additional info: 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] Core dump
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 ***