pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/51100: cdecl rejects valid syntax
>Number: 51100
>Category: pkg
>Synopsis: cdecl rejects valid C syntax
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Apr 29 03:20:00 +0000 2016
>Originator: john%iastate.edu@localhost
>Release: NetBSD 6.1.5
>Organization:
Iowa State University of Science and Technology
>Environment:
System: NetBSD here-be-dragons.its.iastate.edu 6.1.5 NetBSD 6.1.5 (MONOLITHIC) i386
Architecture: i386
Machine: i386
>Description:
The cdecl program declares that having storage-class and
a type-qualifier is a syntax error, for example:
cdecl> explain static const int jsb
syntax error
Any combination of storage-class (auto, extern, register, static)
and type-qualifier (const, volatile, noalias) gives this result.
Interestingly, the reverse works fine:
cdecl> declare jsb as static const int
static const int jsb
BTW, the manpage also contains an error:
<storage> ::= auto | extern | register | auto
should be:
<storage> ::= auto | extern | register | static
>How-To-Repeat:
This should be intuitively obvious to even the most casual observer.
>Fix:
Home |
Main Index |
Thread Index |
Old Index