Skip to content

Commit

Permalink
2004-05-30 Marek Safar <marek.safar@seznam.cz>
Browse files Browse the repository at this point in the history
	Fixed bug #58624
	* ecore.cs (SimpleName.SimpleNameResolve): Added test for
	unsafe type.

svn path=/trunk/mcs/; revision=28493
  • Loading branch information
marek-safar committed May 30, 2004
1 parent d857e24 commit b18d980
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mcs/mcs/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2004-05-30 Marek Safar <marek.safar@seznam.cz>

Fixed bug #58624
* ecore.cs (SimpleName.SimpleNameResolve): Added test for
unsafe type.

2004-05-30 Martin Baulig <martin@ximian.com>

Merged latest changes into gmcs. Please keep this comment in
Expand Down
5 changes: 5 additions & 0 deletions mcs/mcs/ecore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2040,6 +2040,11 @@ Expression SimpleNameResolve (EmitContext ec, Expression right_side,
}
}

if (e.Type != null && e.Type.IsPointer && !ec.InUnsafe) {
UnsafeError (loc);
return null;
}

return e;
}

Expand Down

0 comments on commit b18d980

Please sign in to comment.