**** Merged r45656-r45657 from MCS ****
[mono.git] / mcs / gmcs / ChangeLog
index bbb6d375e1808f8e676b710dde814176398d9375..457f328c68c54a388169eec5fbf8ad40d47a2027 100644 (file)
@@ -1,3 +1,123 @@
+2005-06-08  Miguel de Icaza  <miguel@novell.com>
+
+       * class.cs: Small fix.
+
+2005-06-08  Raja R Harinath  <rharinath@novell.com>
+
+       Fix #75160.
+       * class.cs (GetPartialBases): Fix return value check of
+       part.GetClassBases.
+
+2005-06-07  Raja R Harinath  <rharinath@novell.com>
+
+       Ensure that partial classes are registered in their enclosing
+       namespace.  Initial part of fix of #75160.
+       * tree.cs (Tree.RecordDecl): Add new namespace argument.
+       Register declspace with namespace here, not in
+       DeclSpace.RecordDecl.
+       * cs-parser.jay: Pass namespace to RecordDecl.
+       * class.cs (PartialContainer.Create): Likewise.
+       (ClassPart.DefineType): New sanity-check.  Throws an exception if
+       called.
+       * decl.cs (Declspace.RecordDecl): Remove.
+       * namespace.cs (NamespaceEntry.DefineName): Remove.
+
+2005-06-06  Marek Safar  <marek.safar@seznam.cz>
+
+       * rootcontext.cs: Reset TargetExt as well.
+
+2005-06-03  Raja R Harinath  <rharinath@novell.com>
+
+       * ecore.cs (Expression.Resolve): Emit CS0654 error when
+       -langversion:ISO-1.
+
+2005-06-02  Raja R Harinath  <rharinath@novell.com>
+
+       Fix #75080, cs0119.cs.
+       * ecore.cs (Expression.ExprClassToResolveFlags): New.  Broken out
+       of ...
+       (Expression.Resolve): ... this.  Use it.  Remove bogus code
+       allowing ExprClass.Type and ExprClass.Namespace for
+       ResolveFlags.VariableOrValue.
+       (Expression.Resolve) [1-argument variant]: Change default resolve
+       flags based on language version.
+       (Expression.Error_UnexpectedKind): Use a simple string array
+       rather than an ArrayList.
+       * expression.cs (TypeOf.DoResolve): Set eclass to ExprClass.Value,
+       not ExprClass.Type.
+       (TypeOfVoid.DoResolve): Likewise.
+       (MemberAccess.DoResolve) [3-argument variant]: Make private.  Drop
+       flags argument -- it always has the same value.
+
+2005-05-31  Raja R Harinath  <rharinath@novell.com>
+
+       Fix #75081.
+       * ecore.cs (Expression.ResolveLValue): Add a Location parameter.
+       Use it in the error message.
+       * assign.cs, expression.cs, statement.cs: Update.
+
+2005-05-30  Raja R Harinath  <rharinath@novell.com>
+
+       Fix #75088.
+       * ecore.cs (Expression.MemberLookupFailed): Add CS0122 check in
+       the "almostMatchedMember" case too.
+       * typemanager.cs (Closure.CheckValidFamilyAccess): Add anything
+       that failed the accessibility checks to 'almost_match'.
+
+2005-05-27  Vladimir Vukicevic  <vladimir@pobox.com>
+
+       * attribute.cs: Use internal MethodBuilder methods to set
+       ExactSpelling and SetLastError on PInvoke methods, instead
+       of passing them via charset.  Fixes #75060.
+
+2005-05-27  Raja R Harinath  <rharinath@novell.com>
+
+       * parameter.cs (Parameter): Remove TODO comment.
+       (Parameter.DefineParameter): Remove Location parameter.
+       (Parameters.LabelParameters): Likewise.
+       * class.cs (Constructor.Emit): Update to change.
+       (MethodData.Emit): Likewise.
+       * anonymous.cs (AnonymousMethod.EmitMethod): Likewise.  
+       * delegate.cs (Delegate.Define, Delegate.Emit): Likewise.
+
+2005-05-27  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * parameter.cs,
+         Removed Parameters.Location and added Parameter.Location instead.
+         Removed Location parameter from Emit() and GetSignature().
+       * anonymous.cs,
+         class.cs,
+         cs-parser.jay,
+         delegate.cs,
+         iterators.cs,
+         statement.cs :
+         Modified all related calls.
+
+2005-06-21  Martin Baulig  <martin@ximian.com>
+
+       * generic.cs (NullCoalescingOperator.Emit): Make this work if the
+       left-hand side is not a nullable type; fixes #75328.
+
+2005-06-21  Martin Baulig  <martin@ximian.com>
+
+       * typemanager.cs
+       (TypeManager.CSharpName): Use GetFullName() instead of `t.FullName'.
+       (TypeManager.GetFullNameSignature): Likewise.
+
+       * convert.cs (Convert.Error_CannotImplicitConversion): Compare
+       `source.FullName' and `target.FullName' to check whether there are
+       two conflicting definitions.
+
+2005-06-21  Martin Baulig  <martin@ximian.com>
+
+       * convert.cs (Convert.ImplicitTypeParameterConversion): Always use
+       a BoxedCast - also for reference types - to be compatible with csc.
+
+2005-06-21  Martin Baulig  <martin@ximian.com>
+
+       * expression.cs (MemberAccess.DoResolve): Add support for nested
+       types in a generic instance; fixes #75320.
+
 2005-06-20  Martin Baulig  <martin@ximian.com>
 
        * generic.cs (TypeManager.InferType): Also walk the class
        * statement.cs (Try.DoResolve): Don't create a `finally' if we
        don't need to.  Fix #75014.
 
+2005-05-24  Duncan Mak  <duncan@novell.com>
+
+       * ecore.cs (CastFromDecimal): New class for casting a decimal to
+       another class, used in Convert.ExplicitNumericConversion.
+       (CastToDecimal): New class, similar to above, but casts to
+       System.Decimal, used in Convert.ImplicitNumericConversion and also
+       in explicit convesion from double/float to decimal.
+
+       * convert.cs (ImplicitNumericConversion): Handle implicit
+       conversions to System.Decimal.
+       (ExplicitNumericConversion): handle explicit conversions to
+       System.Decimal.
+
+       This fixes #68711.
+       
 2005-05-20  Miguel de Icaza  <miguel@novell.com>
 
        * typemanager.cs: Do not throw an exception in the TypeBuilder