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 <[EMAIL PROTECTED]>
* 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
_______________________________________________
SVN-commits-list mailing list (read only)
http://mail.gnome.org/mailman/listinfo/svn-commits-list
Want to limit the commits to a few modules? Go to above URL, log in to edit
your options and select the modules ('topics') you want.
Module maintainer? It is possible to set the reply-to to your development
mailing list. Email [EMAIL PROTECTED] if interested.