Author: martin
Date: 2005-04-13 07:43:09 -0400 (Wed, 13 Apr 2005)
New Revision: 42909
Modified:
trunk/mcs/gmcs/ChangeLog
trunk/mcs/gmcs/report.cs
Log:
**** Merged r41279 from MCS ****
Modified: trunk/mcs/gmcs/ChangeLog
===================================================================
--- trunk/mcs/gmcs/ChangeLog 2005-04-13 11:42:42 UTC (rev 42908)
+++ trunk/mcs/gmcs/ChangeLog 2005-04-13 11:43:09 UTC (rev 42909)
@@ -1,3 +1,9 @@
+2005-02-28 Raja R Harinath <[EMAIL PROTECTED]>
+
+ Fix #73052.
+ * report.cs (Report.SymbolRelatedToPreviousError): Handle
+ non-simple types (array, pointer, reference).
+
2005-02-28 Marek Safar <[EMAIL PROTECTED]>
* cs-parser.jay: Add errors 1617, 650, 1007, 531, 547, 548
Modified: trunk/mcs/gmcs/report.cs
===================================================================
--- trunk/mcs/gmcs/report.cs 2005-04-13 11:42:42 UTC (rev 42908)
+++ trunk/mcs/gmcs/report.cs 2005-04-13 11:43:09 UTC (rev 42909)
@@ -15,6 +15,7 @@
using System.Collections.Specialized;
using System.Diagnostics;
using System.Reflection;
+using System.Reflection.Emit;
namespace Mono.CSharp {
@@ -312,11 +313,14 @@
static public void SymbolRelatedToPreviousError (Type type)
{
- DeclSpace temp_ds = TypeManager.LookupDeclSpace (type);
- if (temp_ds == null)
+ if (type is TypeBuilder) {
+ DeclSpace temp_ds = TypeManager.LookupDeclSpace
(type);
+ SymbolRelatedToPreviousError (temp_ds.Location,
TypeManager.CSharpName (type));
+ } else if (type.HasElementType) {
+ SymbolRelatedToPreviousError
(type.GetElementType ());
+ } else {
SymbolRelatedToPreviousError
(type.Assembly.Location, TypeManager.CSharpName (type));
- else
- SymbolRelatedToPreviousError (temp_ds.Location,
TypeManager.CSharpName (type));
+ }
}
static void SymbolRelatedToPreviousError (string loc, string
symbol)
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches