[comp.lang.c++] array of pointers BUG

djones@megatest.UUCP (Dave Jones) (01/02/88)

/*
 ATT release 1.2.1

 BUG:  You can't declare an array of pointers, using parentheses to
       clarify default precedence.  It says, "syntax error."

 GETAROUND: Use a typedef to define a pointer-type, then declare an
     array of those, or don't use parentheses.
*/

typedef int *int_ptr;

int_ptr Z[5];   /*  okay */

int *X[5];      /* okay */

int *(Y[5]);    /* syntax error */