diff options
author | Miguel de Icaza <miguel@gnome.org> | 2004-09-07 01:24:40 +0400 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2004-09-07 01:24:40 +0400 |
commit | 7255e0c21d43e611bdf10af4bc8a7e8ba41c543f (patch) | |
tree | f3a73b7ba311d4fd21b97d6002066d5afc2ba5e9 /mcs | |
parent | a2bea1c09c2d348f4cdd939d57895892c27f1b55 (diff) |
2004-09-06 Miguel de Icaza <miguel@ximian.com>
* parameter.cs: Do not crash if the type can not be resolved.
svn path=/trunk/mcs/; revision=33451
Diffstat (limited to 'mcs')
-rwxr-xr-x | mcs/mcs/ChangeLog | 2 | ||||
-rwxr-xr-x | mcs/mcs/parameter.cs | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/mcs/mcs/ChangeLog b/mcs/mcs/ChangeLog index 4d5f38a87f7..d321c8d0d1a 100755 --- a/mcs/mcs/ChangeLog +++ b/mcs/mcs/ChangeLog @@ -1,5 +1,7 @@ 2004-09-06 Miguel de Icaza <miguel@ximian.com> + * parameter.cs: Do not crash if the type can not be resolved. + * expression.cs: Report errors with unsafe pointers, fixes #64896 2004-09-06 Ben Maurer <bmaurer@users.sourceforge.net> diff --git a/mcs/mcs/parameter.cs b/mcs/mcs/parameter.cs index f836a138c91..f92a20cb7cb 100755 --- a/mcs/mcs/parameter.cs +++ b/mcs/mcs/parameter.cs @@ -155,6 +155,9 @@ namespace Mono.CSharp { { parameter_type = ds.ResolveType (TypeName, false, l); + if (parameter_type == null) + return false; + if (parameter_type.IsAbstract && parameter_type.IsSealed) { Report.Error (721, l, "'{0}': static types cannot be used as parameters", GetSignatureForError ()); return false; |