Finally I figured out that crashed program is not valac but g-ir-compiler,
sorry for wrong information.
The .gir generated by valac with the code in previous mail causes
g-ir-compiler segfault. If we simply
replace MyEnum with int, everything just fine.
namespace Bla
{
public enum MyEnum
{
VALUE1,
VALUE2
}
public class MyObj
{
public *int* e;
}
}
Derek Dai
On Wed, Feb 22, 2012 at 1:57 PM, Derek Dai <[email protected]> wrote:
> I try to use valac (0.12, 0.14, 0.16) to generate .gir. I found that if my
> vala code look like below
>
> namespace Bla
> {
> public enum MyEnum
> {
> VALUE1,
> VALUE2
> }
>
> public class MyObj
> {
> public MyEnum e;
> }
> }
>
> valac will segfault. If I replace
> public MyEnum e;
> with
> public int e;
>
> Everything just fine.
>
> Derek Dai
>
_______________________________________________
vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list