vala r2312 - in trunk: . vala
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r2312 - in trunk: . vala
- Date: Fri, 9 Jan 2009 19:05:18 +0000 (UTC)
Author: juergbi
Date: Fri Jan 9 19:05:18 2009
New Revision: 2312
URL: http://svn.gnome.org/viewvc/vala?rev=2312&view=rev
Log:
2009-01-09 JÃrg Billeter <j bitron ch>
* vala/valaunaryexpression.vala:
Fix critical when trying to access instance member,
fixes bug 566337
Modified:
trunk/ChangeLog
trunk/vala/valaunaryexpression.vala
Modified: trunk/vala/valaunaryexpression.vala
==============================================================================
--- trunk/vala/valaunaryexpression.vala (original)
+++ trunk/vala/valaunaryexpression.vala Fri Jan 9 19:05:18 2009
@@ -154,6 +154,12 @@
return false;
}
+ if (inner.value_type is FieldPrototype) {
+ error = true;
+ Report.error (inner.source_reference, "Access to instance member `%s' denied".printf (inner.symbol_reference.get_full_name ()));
+ return false;
+ }
+
if (operator == UnaryOperator.PLUS || operator == UnaryOperator.MINUS) {
// integer or floating point type
if (!is_numeric_type (inner.value_type)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]