tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: [Tinycc-devel] Memory allocation and initialization of arrays withdi


From: Alexander Egorenkov
Subject: AW: [Tinycc-devel] Memory allocation and initialization of arrays withdimension % 2 = 0
Date: Tue, 3 Feb 2009 11:46:57 +0100

Yes, you are right. But then the TCC compiler have to complain about the 
declarations like

int b[][] = { {1, 2}, {3, 4} };

But now the TCC compiler compiles this construct without errors !!!

Alex.

Regards. 

-----Ursprüngliche Nachricht-----
Von: address@hidden [mailto:address@hidden Im Auftrag von Daniel Gloeckner
Gesendet: Dienstag, 3. Februar 2009 11:17
An: address@hidden
Betreff: Re: [Tinycc-devel] Memory allocation and initialization of arrays 
withdimension % 2 = 0

>       int b[][] =3D { { 5, 6 }, { 7 , 8 } };

I don't think it is valid to define an array with more than the first dimension 
being unspecified.

type_size resulting in a negative value signifies that the type is incomplete.

  Daniel
--
Jetzt 1 Monat kostenlos! GMX FreeDSL - Telefonanschluss + DSL für nur 17,95 
Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a


_______________________________________________
Tinycc-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/tinycc-devel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]