
7 May
2004
7 May
'04
2:52 p.m.
Thorsten Ottosen wrote:
"Neal D. Becker" <ndbecker2@verizon.net> wrote in message news:c7fv0m$bs4$1@sea.gmane.org... | This simple test fails to compile on gcc-3.3.3. Any thoughts?
the tests works with gcc 3.3.1.
| int F (int size) { | int a[size];
^^^^^^
not legal, size must be a constant.
variable size array are c99 extension. Supported by g++ (supposedly). IIRC under consideration for addition to ANSI c++? Only problem is, I don't know how to write a template that matches a variable size array.