summaryrefslogtreecommitdiff
path: root/vala/valapointerindirection.vala
diff options
context:
space:
mode:
authorLuca Bruno <lucabru@src.gnome.org>2011-04-30 17:42:00 +0200
committerLuca Bruno <lucabru@src.gnome.org>2011-04-30 17:42:00 +0200
commit19d32a9e196a0e78be1721c5add06cf6c8174f21 (patch)
treece93eb2bb3a47bd9c9b236f5fb9be53a3b396113 /vala/valapointerindirection.vala
parentc677d391f598f88354467ceb70bc857d28fd04d2 (diff)
downloadvala-19d32a9e196a0e78be1721c5add06cf6c8174f21.tar.gz
Forbid pointer indirection for void type
Fixes bug 648890.
Diffstat (limited to 'vala/valapointerindirection.vala')
-rw-r--r--vala/valapointerindirection.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/vala/valapointerindirection.vala b/vala/valapointerindirection.vala
index 424958bd8..301ca7159 100644
--- a/vala/valapointerindirection.vala
+++ b/vala/valapointerindirection.vala
@@ -86,7 +86,7 @@ public class Vala.PointerIndirection : Expression {
}
if (inner.value_type is PointerType) {
var pointer_type = (PointerType) inner.value_type;
- if (pointer_type.base_type is ReferenceType) {
+ if (pointer_type.base_type is ReferenceType || pointer_type.base_type is VoidType) {
error = true;
Report.error (source_reference, "Pointer indirection not supported for this expression");
return false;