Bug 75606 - Gcc crashed while compiling a c file.
Gcc crashed while compiling a c file.
Product: Red Hat Linux
Classification: Retired
Component: gcc (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2002-10-10 03:50 EDT by Sreeram
Modified: 2007-04-18 12:47 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-12-15 20:28:27 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Sreeram 2002-10-10 03:50:45 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT)

Description of problem:
When I tried to compile a c file and creating dependency file it showed this.
<command line>: macro names must be identifiers. gcc: Internal error: 
Segmentation fault (program cpp0)

Version-Release number of selected component (if applicable): 2.96

How reproducible:
Didn't try

Additional info:
Comment 1 Dominic Binks 2002-10-21 11:38:01 EDT
I have reproduced this problem when a define (-D flag) is set to an include i.e.

1. Touch a file file.cpp
2. g++ -MM -D-I/dum/dee file.cpp

get the following or similar 

<command line>: macro names must be identifiers
g++: Internal error: Segmentation fault (program cpp0)
Please submit a full bug report.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.

Comment 2 Alan Cox 2002-12-15 20:28:27 EST
Tests out ok in 8.0 / g++ 3.2

Note You need to log in before you can comment on or make changes to this bug.