vala r1775 - in trunk: . vala
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r1775 - in trunk: . vala
- Date: Tue, 16 Sep 2008 13:59:58 +0000 (UTC)
Author: juergbi
Date: Tue Sep 16 13:59:58 2008
New Revision: 1775
URL: http://svn.gnome.org/viewvc/vala?rev=1775&view=rev
Log:
2008-09-16 JÃrg Billeter <j bitron ch>
* vala/valasemanticanalyzer.vala:
Check for structs without fields, patch by Jared Moore,
fixes bug 543562
Modified:
trunk/ChangeLog
trunk/vala/valasemanticanalyzer.vala
Modified: trunk/vala/valasemanticanalyzer.vala
==============================================================================
--- trunk/vala/valasemanticanalyzer.vala (original)
+++ trunk/vala/valasemanticanalyzer.vala Tue Sep 16 13:59:58 2008
@@ -318,6 +318,10 @@
st.accept_children (this);
+ if (!st.external && st.get_base_types ().size == 0 && st.get_fields ().size == 0) {
+ Report.error (st.source_reference, "structs cannot be empty");
+ }
+
current_symbol = current_symbol.parent_symbol;
current_struct = null;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]