#145931 cdecl: Can't handle char const * a;

Package:
cdecl
Source:
cdecl
Description:
Turn English phrases to C or C++ declarations
Submitter:
Mark
Date:
2005-07-18 03:25:55 UTC
Severity:
normal
#145931#5
Date:
2002-05-05 21:28:39 UTC
From:
To:
If I start up a cdecl session:

cdecl> explain  char const * a;
parse error

when it should be responding with:
declare a as pointer to char const

(or it might say "declare a as pointer to const char")

This declaration does in fact work in C programs.

The cutils version of cdecl responds appropriately.