[vala/staging] codegen: Report error for unsupported symbol_reference of MemberInitializer
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] codegen: Report error for unsupported symbol_reference of MemberInitializer
- Date: Tue, 16 Feb 2021 21:57:38 +0000 (UTC)
commit 57e5ed13399f3b98c84066ed95a2fcdc70eba71e
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Tue Feb 16 22:42:00 2021 +0100
codegen: Report error for unsupported symbol_reference of MemberInitializer
codegen/valaccodebasemodule.vala | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index 52d4389e0..9ed7d3816 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -5209,6 +5209,8 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator {
if (!p.set_accessor.value_type.value_owned && requires_destroy
(init.initializer.target_value.value_type)) {
ccode.add_expression (destroy_value
(init.initializer.target_value));
}
+ } else {
+ Report.error (init.source_reference, "internal: Unsupported symbol");
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]