In vala 0.13.2 - not a coredump, but still an error:
$ valac --version
Vala 0.13.2
$ cat a.vala
using Gee;
void main()
{
HashMap<int, int> x = new HashMap<int, int>();
x[1]++;
// if we use x[1] += 1; would be ok
}
$ valac a.vala --pkg=gee-1.0
a.vala:5.5-5.8: error: The expression `Gee.HashMap<int,int>?' does not denote
an array
x[1]++;
^^^^
Compilation failed: 1 error(s), 0 warning(s)
And yes, x[1] += 1 works in 0.13.2
> ------------ Původní zpráva ------------
> Od: Luca Dionisi <[email protected]>
> Předmět: [Vala] compiler segfault
> Datum: 06.3.2012 08:39:56
> ----------------------------------------
> With this snippet of code:
>
> using Gee;
> void main()
> {
> HashMap<int, int> x = new HashMap<int, int>();
> x[1]++;
> // if we use x[1] += 1; would be ok
> }
>
> the compiler core dumps.
> I am using 0.12
> Is anybody willing to check if the bug is still there with newer versions?
>
> --Luca
> _______________________________________________
> vala-list mailing list
> [email protected]
> http://mail.gnome.org/mailman/listinfo/vala-list
>
>
>
_______________________________________________
vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list