www.digitalmars.com         C & C++   DMDScript  

c++ - Array declarators and cv qualifiers

8.3.4-1

typedef int A[5];
typedef const A CA;
// Error: type qualifiers and static can only appear in outermost
// array of function parameter

void main() {
CA ca;
}

This one has medium priority.

Sorry Gisle.. I did say I was "almost" convinced. 8.3.4-1 clearly shows that the
above is well formed.

Richard
Jan 11 2003