Opened 15 years ago
Closed 14 years ago
#281 closed defect (fixed)
parser rejects abstract functions which return arrays
| Reported by: | Stephen Siegel | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.1 |
| Component: | front | Version: | 1.1 |
| Keywords: | parse abstract function array type | Cc: |
Description
The parser will not accept an abstract function which returns an array, such as
#pragma TASS abstract char[] STDIO_SCAN_STRING(FILE file, int position);
Abstract functions should probably be allowed to take any type and return any type.
Note:
See TracTickets
for help on using tickets.

The grammar had been set up for the return type of an abstract function to be a type_name. This prevented arrays, pointers, etc. from being return types of abstract functions. The return type is now any kind of declarator.