From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2002-03-06 17:32:20
On Wed, Mar 06, 2002 at 04:05:03PM +0100, Andre Majorel wrote: > Apologies if I'm missing something but do you mean that you made > assigning to an undefined struct legal ? I would expect the a = b > = c line to fail with "{a,b,c} has incomplete type" or something > to that effect. No. Piotr didn't mention that explicitly, but his sample code needs the struct definition as a prerequisite. The problem was that the code for struct assigments checked if the right hand side was an lvalue, which is not a necessary condition and caused the above code to fail. Provided that "struct s" is a forward declaration, doing struct s a; should fail, because the compiler does not know how much space to allocate. Unfortunately I found out when testing this one minute ago, that the compiler does not do that - something else which I will have to fix. Regards Uz -- Ullrich von Bassewitz uz_at_musoftware.de ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo_at_musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2002-03-06 17:32:23 CET