[Vala] segmentation fault when property default is set to a struct



The following kill valac (version 0.7.8) with
a segmentation fault:

*** valac killer 1 ***
struct SomeStruct {
  string s;
}
class SomeClass {
  public SomeStruct p {get; set; default = SomeStruct();}
}

*** valac killer 2 : error correctly reported, but compiler dies ***
struct SomeStruct {
  string s;
}
class SomeClass {
  public SomeStruct p {get; set; default = X();}
}

*** valac killer 3 : compiler dies without reporting the error ***
struct SomeStruct {
  string s;
}
class SomeClass {
  public SomeStruct p {get; set; default = ();}
}

hand
Nor Jaidi Tuah






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