vala r916 - in trunk: . vala



Author: juergbi
Date: Sun Jan 27 16:21:47 2008
New Revision: 916
URL: http://svn.gnome.org/viewvc/vala?rev=916&view=rev

Log:
2008-01-27  Juerg Billeter  <j bitron ch>

	* vala/valasemanticanalyzer.vala: fix critical when using normal member
	  access on pointers


Modified:
   trunk/ChangeLog
   trunk/vala/valasemanticanalyzer.vala

Modified: trunk/vala/valasemanticanalyzer.vala
==============================================================================
--- trunk/vala/valasemanticanalyzer.vala	(original)
+++ trunk/vala/valasemanticanalyzer.vala	Sun Jan 27 16:21:47 2008
@@ -1403,11 +1403,9 @@
 			if (expr.symbol_reference == null && expr.inner.static_type != null) {
 				if (expr.pointer_member_access) {
 					expr.symbol_reference = expr.inner.static_type.get_pointer_member (expr.member_name);
-				} else {
+				} else if (expr.inner.static_type.data_type != null) {
 					base_symbol = expr.inner.static_type.data_type;
-					if (base_symbol != null) {
-						expr.symbol_reference = symbol_lookup_inherited (base_symbol, expr.member_name);
-					}
+					expr.symbol_reference = symbol_lookup_inherited (base_symbol, expr.member_name);
 				}
 				if (expr.symbol_reference != null) {
 					// inner expression is variable, field, or parameter



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