"Stefan Teleman" <[EMAIL PROTECTED]> wrote:

> > "foo.C", line 4: Error: An integer constant expression is required within 
> > the array subscript operator.
> > 1 Error(s) detected.
>
> Because argc is not an "integer constant expression". :-)
>
> #include <iostream>
> using namespace std;
>
> static const int len = 8;
>
> int
> main(int argc, char* argv[])
> {
>     char *acp[len];
>     return 0;
> }
>
> This compiles with Studio 11 and -xlang=c99.

But this is not using VLA code anymore.


Jörg

-- 
 EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
       [EMAIL PROTECTED]                (uni)  
       [EMAIL PROTECTED]     (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to