Le lundi 17 décembre 2007 à 22:39 +0100, Emmanuel Pacaud a écrit :
> Hi,
> 
> The attached sample code fails to compile correctly and crash when
> executed.
> 
> > valac-head interface-test-4.vala -o interface-test-4
> interface-test-4.c: In function `bar_real_set_field':
> interface-test-4.c:126: warning: assignment discards qualifiers from
> pointer target type
> 
> > ./interface-test-4 
> *** glibc detected *** ./interface-test-4: double free or corruption
> (fasttop): 0x0804ff90 ***
> 
> Is the sample code correct? If not, what's wrong ?

I have an even simpler test case I've attached to this message.

        Emmanuel.
using GLib;

class Foo : Object
{
	string# field {
		set;
	}

	static int main (string[] args)
	{
		var foo = new Foo ();

		foo.field = "toto";
	}
}
_______________________________________________
Vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to