Bug 39929
Summary: | gcc-2.96 errors out if typedef ... ident precedes #ident line | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Mike Wescott <wescott> |
Component: | gcc | Assignee: | Jakub Jelinek <jakub> |
Status: | CLOSED RAWHIDE | QA Contact: | David Lawrence <dkl> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.1 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i686 | ||
OS: | Linux | ||
URL: | #ident directive produces | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2001-05-10 07:54:35 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Mike Wescott
2001-05-09 19:16:04 UTC
Will be fixed in gcc-2.96-86. The fix is easy: --- gcc/c-lex.c.jj Wed May 9 20:56:44 2001 +++ gcc/c-lex.c Thu May 10 11:07:14 2001 @@ -614,7 +614,7 @@ check_newline () token = yylex (); - if (token == IDENTIFIER) + if (token == IDENTIFIER || token == TYPENAME || token == OBJECTNAME) { /* If a letter follows, then if the word here is `line', skip it and ignore it; otherwise, ignore the line, with an error |