Issue Details (XML | Word | Printable)

Key: PCC-152
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Anders Magnusson
Reporter: Detlef Riekenberg
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
pcc

pcc fail to compile include/ctype.h on linux: __attribute__ ((__const))

Created: 12/Jun/10 04:55 PM   Updated: 12/Jun/10 05:24 PM
Component/s: C frontend
Affects Version/s: None
Fix Version/s: None

File Attachments: 1. File ctype.c (0,2 kB)

Environment: ubuntu 10.04 / i386


 Description  « Hide
pcc failed to compile "/usr/include/ctype.h" on linux:
/usr/include//ctype.h, line 82: syntax error
/usr/include//ctype.h, line 84: syntax error
/usr/include//ctype.h, line 86: syntax error

First failing preprocessed line:
extern __const unsigned short int **__ctype_b_loc (void) __attribute__ ((__nothrow__)) __attribute__ ((__const));

Failure message with the attached stripped down example source:
ctype.c, line 20: syntax error

--
By by ... Detlef



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Detlef Riekenberg added a comment - 12/Jun/10 04:56 PM
the example compiles, when removing: __attribute__ ((__const))

--
By by ... Detlef

Anders Magnusson added a comment - 12/Jun/10 05:24 PM
Fixed. The problem was that __const was a type which caused the yacc code to bail out.