Pelles C forum

Pelles C => Bug reports => Topic started by: Robert on October 05, 2005, 11:05:39 PM

Title: VLA problem
Post by: Robert on October 05, 2005, 11:05:39 PM
The following snippet for setting up a pointer to a VLA
taken from the What are Variable Length Arrays? section of

http://www.comeaucomputing.com/techtalk/c99/

int main()
{
int n = 99
static int (*p)[n];
}

generates

error #2084: Invalid storage class 'static' for 'p' with type ' int

Robert Wishlaw

Robert Wishlaw