Commit Graph
304 Commits
Author SHA1 Message Date
Gert Driesen cb6468793e * cs1007-2.cs: New test from bug #436792.
svn path=/trunk/mcs/; revision=117861
2008-11-04 10:40:19 +00:00
Raja R Harinath 9c4a37c9d0 Fix #377028
* ecore.cs (Expression.ResolveAsTypeStep): If '!silent' attempt to
emit a meaningful error message.

svn path=/trunk/mcs/; revision=99835
2008-04-04 10:55:58 +00:00
Raja R Harinath ffd4bd4a4d Fix #324765, #319508
* flowanalysis.cs (VariableInfo.IsEverAssigned): New.
(VariableInfo.SetAssigned): Set it.
* statement.cs (Block.UsageWarning): Use 'IsEverAssigned' to
determine if CS0219 or CS0168 is appropriate.  Don't use
flow-analysis information.
(Block.Resolve): Use ec.EndFlowBranching, not ec.DoEndFlowBranching.
* codegen.cs (EmitContext.DoEndFlowBranching): Kill.  Inline into ...
(EmitContext.EndFlowBranching): ... this.

svn path=/trunk/mcs/; revision=99830
2008-04-04 08:19:51 +00:00
Marek Safar d9ffea82bd 2008-03-14 Marek Safar <[email protected]>
* Makefile: New compiler-tester options.


svn path=/trunk/mcs/; revision=98252
2008-03-14 09:05:40 +00:00
Raja R Harinath bd84f66eb2 Fix #363791
* mcs/enum.cs (EnumMember.Value): Only access 'value' if
ResolveValue says it's ok.
(EnumMember.DoResolveValue): Don't set prev_member.value.
(Enum.GetDefinition): Reverse arguments of Equals --
EnumMember.Value can return 'null'.
* errors/cs0152-3.cs: New testcase from #363791.

svn path=/trunk/mcs/; revision=96530
2008-02-25 08:01:59 +00:00
Raja R Harinath 075d59baa8 * gcs1644-10.cs: Remove spurious error message.
svn path=/trunk/mcs/; revision=96528
2008-02-25 08:01:12 +00:00
Raja R Harinath 264c06c083 In .:
* Makefile (_boot_): Orchestrate the net_2_1 bootstrap.
	(net_2_1_bootstrap_SUBDIRS, net_2_1_raw_SUBDIRS): New.

In build:
	* profiles/net_2_1_bootstrap.make: New.
	* profiles/net_2_1_raw.make: New.  The untuned 2.1 profile.
	* profiles/net_2_1.make: New.  The tuned 2.1 profile.
	* Makefile (PROFILES): Update.

In class:
	* Makefile (net_3_5_dirs): Remove System.Xml.Linq, now that it's
	built in the 2.0 profile.

In class/System:
	* Makefile (CYCLIC_DEPS): New macro.
	(CYCLIC_DEP_FILES): Use it to clean up handling of cyclic dependencies.
	* net_2_1_raw_System.dll.sources: Rename from net_2_1_System.dll.sources.
	* net_2_1_bootstrap_System.dll.sources: New.

In class/corlib:
	* Makefile (LIBRARY_COMPILE) [net_2_1]: Remove special case.

In errors:
	* Makefile: Enable testing net_2_1 profile.

In mcs:
	* Makefile (GMCS_PROFILE): Remove.
	(COMPILER_NAME): New helper.

In tests:
	* Makefile: Enable smcs testing.

In tools:
	* Makefile (net_2_1_raw_SUBDIRS): New.

In tools/compiler-tester:
	* Makefile [PROFILE=net_2_1]: Copy file from net_2_1_raw profile.
	* compiler-tester.cs: Work better with 'net_2_1' profiles.

In tools/tuner:
	* Makefile: Improve.  Update to new net_2_1 profiles.  Specify
	more dependencies.  Do work only when necessary.
	* Descriptors/smcs.xml: Add CompilerCallableEntryPoint.

svn path=/trunk/mcs/; revision=95989
2008-02-17 17:54:22 +00:00
Raja R Harinath a3a3c825c8 * errors/Makefile (VALID_PROFILE): New. Disable tests for other profiles.
* tests/Makefile (VALID_PROFILE): New.  Disable tests for other profiles.

svn path=/trunk/mcs/; revision=92719
2008-01-12 05:09:43 +00:00
Gert Driesen 70abb1b327 * typemanager.cs: On 2.0 profile, GetPublicKeyToken returns an empty
byte array for unsigned "baked" assemblies.
* gcs0281.cs: Modified expected error message now that fix for bug
#315057 has been applied. 

svn path=/trunk/mcs/; revision=92330
2008-01-06 09:51:44 +00:00
Gert Driesen 8c107c1f57 * cs0177-8.cs: New test based on #325478.
svn path=/trunk/mcs/; revision=87638
2007-10-17 08:42:42 +00:00
Jb Evain f0176da84e 2007-10-09 Jb Evain <[email protected]>
* known-issues-mcs: test asserting that assembly
	version check should work now.


svn path=/trunk/mcs/; revision=87229
2007-10-09 21:22:36 +00:00
Jb Evain e8a0384572 2007-10-07 Jb Evain <[email protected]>
* cs0647-17.cs: New test for assembly version verification.

svn path=/trunk/mcs/; revision=87044
2007-10-07 02:58:50 +00:00
Raja R Harinath 7790e3db2c Fix #328490
* mcs/ecore.cs (SimpleName.DoSimpleNameResolve): Handle Property and
Event accessibility checks here.  Remove some bogus code that
accidently made GenericMethods work.
(PropertyExpr.IsAccessibleFrom, EventExpr.IsAccessibleFrom): New.
* tests/test-589.cs: Additional test for #328490.
* errors/cs0120-10.cs: New test based on #328490.

svn path=/trunk/mcs/; revision=86807
2007-10-03 13:22:09 +00:00
Atsushi Eno ca272b4310 2007-08-24 Atsushi Enomoto <[email protected]>
* doc.cs : catch other types of exception than XmlException to
	  report CS1570. Fixed bug #82565.

	* cs1570-12.cs : new test (bug #82565).


svn path=/trunk/mcs/; revision=84780
2007-08-24 09:31:55 +00:00
Raja R Harinath 756c4497da Fix #80477, cs0135-2.cs, cs0135-3.cs
* mcs/statement.cs (ToplevelBlock.ProcessParameters): Add parameter
names to the "known" variables list.
(Block.CheckInvariantMeaningInBlock): Handle the fact the
parameter names are also "known".
(Block.CheckError136): Remove.
(ExplicitBlock.CloneTo): New.  Set 'known_variables' in target to null.
* errors/cs0135-2.cs, errors/cs0135-3.cs: New tests for parameter name
conflicts.

svn path=/trunk/mcs/; revision=78855
2007-06-07 15:59:28 +00:00
Scott Thomas 78d320f1dc mcs/class.cs: gmcs/cs-parser.jay: Implemented automatic properties (C#
3.0)

errors/gcs0271.cs: errors/gcs0272.cs: Test automatic properties for 
proper access control.

tests/gtest-autoproperty-01.cs: tests/gtest-autoproperty-02.cs: 
tests/gtest-autoproperty-03.cs: Tests for automatic properties.

svn path=/trunk/mcs/; revision=77877
2007-05-23 23:07:49 +00:00
Raja R Harinath 9a1582d43b In mcs:
Revert r77431, and remove ChangeLog corruption introduced in
	r77445
In errors:
	Add new regression tests, and mark cs0158-5.cs as broken due
	to the revert above.

I decided to break cs0158-5.cs and revert rather than fix the issues since
a correct fix will be very similar to what I'm planning to do for shadowed
variables (invariant meaning in a block).

svn path=/trunk/mcs/; revision=77549
2007-05-17 12:49:26 +00:00
Scott Thomas 45118758b3 errors/gcs0201.cs: Make sure that Linq syntax fails correctly when not
compiling for Linq.

gmcs/cs-parser.jay: Improved grammar for object and collection 
initialization.

mcs/assing.cs:
mcs/expression.cs: Improved object and collection initialization.

tests/gtest-initialize-02.cs: Added an uber-test for object and 
collection initialization.

svn path=/trunk/mcs/; revision=77514
2007-05-16 21:44:29 +00:00
Scott Thomas c9b3b57e88 These new error tests make sure that Linq syntax fails correctly when
not compiling for Linq

svn path=/trunk/mcs/; revision=76983
2007-05-09 03:58:56 +00:00
Raja R Harinath e37311e26d In mcs:
Fix regression in cs0631-3.cs
	* cs-parser.jay (operator_declarator): Add opt_attributes to error
	fallback.  Make error fallback catch more cases.

In gmcs:
	Fix regression in cs0631-3.cs
	* cs-parser.jay (operator_declarator): Add opt_attributes to error
	fallback.  Make error fallback catch more cases.

In errors:
	* cs1534-2.cs: New test.  Ensure that the error handling isn't
	limited to only erroneous 3-argument operators.

svn path=/trunk/mcs/; revision=76555
2007-05-02 08:34:15 +00:00
Raja R Harinath e61ba2c730 Fix #81338
* mcs/statement.cs (For.Resolve): If resolution fails, use KillFlowBranching.
* errors/cs0103-5.cs: New test based on #81338.

svn path=/trunk/mcs/; revision=75536
2007-04-09 14:03:00 +00:00
Bill Holmes 524d93928b 2007-03-21 Bill Holmes <[email protected]>
In mcs :
        * class.cs:
        Added 2 MemberCoreArrayList objects, ordered_explicit_member_list and
        ordered_member_list, to TypeBuilder to store members to be defined
        in the order they were parsed in.
        - ordered_explicit_member_list contains all properties indexers
          and methods that are defined as explicit implementation of an
          interface or base class.
        - ordered_member_list contains all properties indexers and methods
          that are not defined as explicit implementation of an interface
          or base class.

        Removed MethodArrayList and IndexerArrayList from TypeBuilder.  The
        functionality in these removed classes has been replaced with
        ComputeIndexerName, EmitIndexerName, HasEqualss, HasGetHashCode, and
        CheckEqualsAndGetHashCode members defined and called in the TypeBuilderClass.

        Adding CheckForDuplications to PropertyBase.PropertyMethod and calls
        to CheckForDuplications inside GetMethod and SetMethod Define Method
        to handle method property and indexer name conflicts.

In errors :
        * gcs0111-2.cs:
        With the new member ordering change in class.cs, the error message
        for this test has changed and now matches csc output.

        Fixes #79434

        All code is contributed under the MIT/X11 license.


svn path=/trunk/mcs/; revision=74749
2007-03-21 16:36:09 +00:00
Bill Holmes 58f382f87b * cs3005-6.cs
* cs3005-15.cs
          With the changes to mcs/class.cs in r74702 these test
          outputs are now different.  The error messages are still correct
          they are simply reporting the error on the other name due to the
          new order objects are processed.


svn path=/trunk/mcs/; revision=74745
2007-03-21 15:59:28 +00:00
Raja R Harinath b16cf37a8d In gmcs:
Fix #80534, gtest-309.cs
	* generic.cs (UnifyType): Rename from InferType.  Make unification
	of generic insts simpler and don't insist on inferring all generic
	parameters in a single generic inst unification.
	(UnifyTypes): New.
	(InferGenericInstance): Remove.
	Analysis and initial patch by David Mitchell <[email protected]>.

In tests:
	* gtest-309.cs: Renamed from errors/gcs0411-3.cs.
	* gtest-310.cs: New test from #80534.

In errors:
	* gcs0411-3.cs: Rename to tests/gtest-309.cs.

svn path=/trunk/mcs/; revision=71817
2007-01-28 18:36:33 +00:00
Gert Driesen efa7be74b3 * cs1058.cs: Removed as CS1058 does not apply to 1.0 profile.
* gcs1058-1.cs, gcs1058-2.cs: Added tests for bug #79810.

svn path=/trunk/mcs/; revision=68145
2006-11-19 09:33:51 +00:00
Raja R Harinath a33dea0140 Fix #78820
* mcs/ecore.cs (PropertyExpr.InstanceResolve): Always resolve the
instance as an rvalue, even when we later resolve as an lvalue.
* errors/cs0165-13.cs: New test from #78820.

svn path=/trunk/mcs/; revision=66967
2006-10-25 20:58:55 +00:00
Raja R Harinath 86bcccfbc9 Fix #79584
* mcs/class.cs (DefineTypeBuilder): Check circular dependencies before
setting the parent of the TypeBuilder.
(CheckRecursiveDefinition): Don't use 'BaseType', since
it may not be valid until after DefineTypeBuilder.  Use
'base_type' instead.
* errors/cs0146-5.cs: New test from #79584.

svn path=/trunk/mcs/; revision=66334
2006-10-06 08:57:12 +00:00
Martin Baulig 96fa376cf1 2006-10-04 Martin Baulig <[email protected]>
* known-issues-mcs, known-issues-gmcs: Update; the anonymous
	method tests are now working.


svn path=/trunk/mcs/; revision=66237
2006-10-04 20:34:44 +00:00
Raja R Harinath c2d6e657d6 Fix #79577
* mcs/namespace.cs (LookForAnyGenericType): Avoid nullref on 'declspaces'.
Avoid allocating arrays willy-nilly.
* errors/cs0246-17.cs: An embarassingly simple testcase based on #79577.

svn path=/trunk/mcs/; revision=66217
2006-10-04 11:08:06 +00:00
Raja R Harinath 7ac2b2feff In mcs:
Fix #79013
	* convert.cs (Convert.ImplicitStandardConversionExists): Avoid infloop.
	* expression.cs (EmptyExpression.Grab, EmptyExpression.Release):
	Change semantics slightly.  Don't insist on having only one
	temporary EmptyExpression -- just throttle the creation of new ones.

In tests:
	* gtest-291.cs: New test from #79013.

In errors:
	* gcs1502.cs: New test from #79013.

svn path=/trunk/mcs/; revision=66062
2006-09-28 15:06:36 +00:00
Raja R Harinath 4f6a738d14 In mcs:
Fix #79451
	* ecore.cs (Expression.MemberLookup): Enable CS0229 errors for
	non-interfaces too.  If no methods are found, don't try to create
	a MethodGroupExpr.

In errors:
	* cs0229-3.cs, CS0229-3-lib.il: New test based on #79451.
	* cs0229-4.cs, CS0229-4-lib.il: Likewise.

svn path=/trunk/mcs/; revision=66023
2006-09-28 13:11:35 +00:00
Kornél Pál 2d604bc51e Converted ChangeLogs to UTF-8 and recovered incorrectly encoded characters.
svn path=/trunk/mcs/; revision=63835
2006-08-16 19:42:08 +00:00
Raja R Harinath d72da4f2bc In gmcs:
Fix #79067
	* cs-tokenizer.cs (parse_less_than): Allow '*' to appear in a type
	parameter too.  This only avoids a parse error -- the semantic
	error is caught elsewhere.

In errors:
	* gcs0306.cs: New test based on #79067.

svn path=/trunk/mcs/; revision=63715
2006-08-14 11:57:42 +00:00
Raja R Harinath 324ddd0701 In mcs and gmcs:
Fix cs0146-3.cs and cs0146-4.cs.
	* class.cs (TypeManager.CheckRecursiveDefinition): Check that
	enclosing types don't depend on the current type.

In errors:
	* cs0146-3.cs, cs0146-4.cs: New tests for bug discovered while
	fixing #77963.

svn path=/trunk/mcs/; revision=63286
2006-08-03 12:40:31 +00:00
Raja R Harinath 1484ea99d7 In mcs:
Fix the non-generic testcase from #77396
	* decl.cs (DeclSpace.DeclContainer): Remove override.

In gmcs:
	Fix #77396
	* codegen.cs (IResolveContext.GenericDeclContainer): New.
	(EmitContext): Implement new interface requirement.
	* namespace.cs (UsingEntry, LocalAliasEntry): Likewise.
	* decl.cs (MemberCore): Likewise.
	(DeclSpace.GenericDeclContainer): Rename from DeclContainer.
	* ecore.cs (SimpleName.ResolveAsTypeTerminal): Use
	ec.GenericDeclContainer to check for generic parameters.
	(SimpleName.DoSimpleNameResolve): Likewise.
	* generic.cs (TypeParameter.DeclContainer): Remove override.

In errors:
	* cs0246-16.cs, gcs0246-8.cs: New tests from #77396.

svn path=/trunk/mcs/; revision=63248
2006-08-02 13:21:56 +00:00
Raja R Harinath 2afdb7900a Fix #78662
* mcs/expression.cs (Binary.CheckShiftArguments): Don't overwrite original
'left' and 'right' before error-checking.
* gmcs/expression.cs: Likewise.
* errors/cs0019-16.cs: New test from #78662.

svn path=/trunk/mcs/; revision=61898
2006-06-21 11:02:12 +00:00
Raja R Harinath 2751bb50b6 * cs0120-9.cs: New test from #78601.
svn path=/trunk/mcs/; revision=61794
2006-06-16 11:59:38 +00:00
Raja R Harinath ba01d0bb7b In mcs:
* flowanalysis.cs (UsageVector.MergeOrigins): If an origin is
	unreachable, skip it.
	(FlowBranchingException.Merge): Always propagate jumps, even if
	the finally block renders subsequent code unreachable.

In gmcs:
	* flowanalysis.cs (UsageVector.MergeOrigins): If an origin is
	unreachable, skip it.
	(FlowBranchingException.Merge): Always propagate jumps, even if
	the finally block renders subsequent code unreachable.

In tests:
	* test-519.cs: New test for compiler crash.

In errors:
	* cs0139-3.cs, cs0139-4.cs, cs0139-5.cs, cs0139-6.cs: New
	regression tests for 'break' and 'continue' inside a try block.

svn path=/trunk/mcs/; revision=60987
2006-05-23 10:39:14 +00:00
Raja R Harinath 934fecbaef The 'piece de resistance' -- the culmination of the re-factoring effort :-)
In mcs:
	Fix #77869, #76148, #77755, #75255 and a host of other bugs.
	This is still "wrong", but anything better would probably need a
	multi-pass algorithm.
	* flowanalysis.cs (FlowBranchingLabeled): Salt away a copy of the
	usage vector.  Force current usage vector to be reachable, to
	optimistically signify backward jumps.
	(FlowBranchingLabeled.LookupLabel): Note if a backward jump is
	detected.
	(FlowBranchingLabeled.Merge): New.  If no backward jump was
	detected, return the original salted-away usage vector instead,
	updated with appropriate changes.  Print unreachable warning if
	necessary.
	* statement.cs (Block.Resolve): Don't print unreachable warning on
	a labeled statement.

In gmcs:
	Fix #77869, #76148, #77755, #75255 and a host of other bugs.
	This is still "wrong", but anything better would probably need a
	multi-pass algorithm.
	* flowanalysis.cs (FlowBranchingLabeled): Salt away a copy of the
	usage vector.  Force current usage vector to be reachable, to
	optimistically signify backward jumps.
	(FlowBranchingLabeled.LookupLabel): Note if a backward jump is
	detected.
	(FlowBranchingLabeled.Merge): New.  If no backward jump was
	detected, return the original salted-away usage vector instead,
	updated with appropriate changes.  Print unreachable warning if
	necessary.
	* statement.cs (Block.Resolve): Don't print unreachable warning on
	a labeled statement.

In tests:
	* test-514.cs: New test from #76148.
	* test-515.cs, test-516.cs: New tests based on #77755.
	* test-517.cs: New test based on #75255.

In errors:
	* cs0162-6.cs, cs0162-7.cs: New tests for unreachable code.
	Emitting the warning on cs0162-7.cs needs a multi-pass algorithm.
	* cs0165-12.cs: New test from #77869.

svn path=/trunk/mcs/; revision=60813
2006-05-18 11:02:03 +00:00
Raja R Harinath 5345adb679 In mcs:
* flowanalysis.cs (UsageVector.MergeJumpOrigins): Kill.
	(FlowBranchingBlock.Label): Use UsageVector.MergeOrigins.
	(FlowBranchingException.Label): Likewise.

In gmcs:
	* flowanalysis.cs (UsageVector.MergeJumpOrigins): Kill.
	(FlowBranchingBlock.Label): Use UsageVector.MergeOrigins.
	(FlowBranchingException.Label): Likewise.

In tests:
	* test-154.cs (test39): Move buggy testcase to errors/cs0177-7.cs.
	Fix it and move ...
	* test-510.cs: ... here.

In errors:
	* cs0177-7.cs: Taken from erroneous sub-test in tests/test-154.cs.

svn path=/trunk/mcs/; revision=60584
2006-05-11 10:47:15 +00:00
Raja R Harinath 05e7944293 In mcs:
Fix #78290
	* statement.cs (Return.Resolve): Move error checking to ...
	* flowbranching.cs (FlowBranching.AddReturnOrigin): ... this.
	(FlowBranchingException): Handle return origins like break and
	continue origins.
	(FlowBranching.UsageVector.CheckOutParameters): Remove.

In gmcs:
	Fix #78290
	* statement.cs (Return.Resolve): Move error checking to ...
	* flowbranching.cs (FlowBranching.AddReturnOrigin): ... this.
	(FlowBranchingException): Handle return origins like break and
	continue origins.
	(FlowBranching.UsageVector.CheckOutParameters): Remove.

In tests:
	* test-508.cs: New test -- didn't fail earlier, but include to
	catch any regressions.

In errors:
	* cs0177-5.cs, cs0177-6.cs: New tests based on #78290.

svn path=/trunk/mcs/; revision=60279
2006-05-04 19:31:54 +00:00
Raja R Harinath 73cd18936e In mcs:
Fix #76471, #76665
	* flowanalysis.cs (FlowBranching.BranchingType.Embedded): New.
	(FlowBranching.CreateBranching): Handle it: create a
	FlowBranchingContinuable.
	(FlowBranching.BreakCrossesExceptionBoundary): Remove.
	(FlowBranching.AddContinueOrigin): Similar to AddBreakOrigin,
	except that it handles the 'continue' command.
	(FlowBranching.UsageVector.MergeOrigins): Rename from
	MergeBreakOrigins.
	(FlowBranchingContinuable): Similar to FlowBranchingBreakable,
	except that it overrides AddContinueOrigin.
	(FlowBranchingException): Override AddContinueOrigin, similar to
	AddBreakOrigin.
	* statement.cs (While.Resolve, Foreach.ArrayForeach.Resolve):
	Create a new branching around the embedded statement.
	(Do.Resolve, For.Resolve): Likewise.  Do reachability analysis for
	control flow after the embedded statement.
	(Continue.Resolve): Move all error checking to AddContinueOrigin.

In gmcs:
	Fix #76471, #76665
	* flowanalysis.cs (FlowBranching.BranchingType.Embedded): New.
	(FlowBranching.CreateBranching): Handle it: create a
	FlowBranchingContinuable.
	(FlowBranching.BreakCrossesExceptionBoundary): Remove.
	(FlowBranching.AddContinueOrigin): Similar to AddBreakOrigin,
	except that it handles the 'continue' command.
	(FlowBranching.UsageVector.MergeOrigins): Rename from
	MergeBreakOrigins.
	(FlowBranchingContinuable): Similar to FlowBranchingBreakable,
	except that it overrides AddContinueOrigin.
	(FlowBranchingException): Override AddContinueOrigin, similar to
	AddBreakOrigin.
	* statement.cs (While.Resolve, Foreach.ArrayForeach.Resolve):
	Create a new branching around the embedded statement.
	(Do.Resolve, For.Resolve): Likewise.  Do reachability analysis for
	control flow after the embedded statement.
	(Continue.Resolve): Move all error checking to AddContinueOrigin.

In tests:
	* test-504.cs: New test from #76471.

In errors:
	* cs0162-5.cs: New test from #76665.

svn path=/trunk/mcs/; revision=60218
2006-05-03 13:11:05 +00:00
Raja R Harinath 30d127efd5 Fix #75800
* mcs/expression.cs (Invocation.VerifyArgumentsCompat): Don't try
implicit conversions on 'out' and 'ref' arguments.
* gmcs/expression.cs: Likewise.
* errors/cs1502-7.cs: New test from #75800.

svn path=/trunk/mcs/; revision=59696
2006-04-20 13:03:42 +00:00
Raja R Harinath 9062bd5411 In mcs and gmcs:
Fix #66031
	* statement.cs (Block.UsageWarning): Allow VariableInfo to be null.
	(Catch.Resolve): Resolve VarBlock if it exists.

In errors:
	* cs0168-2.cs: New test from #66031.

svn path=/trunk/mcs/; revision=59691
2006-04-20 11:14:15 +00:00
Raja R Harinath 53f50dd85b In mcs and gmcs:
Possibly fix #77752.  Fix cs1690-[4-7].cs.
	* ecore.cs (Expression.CheckMarshalByRefAccess): Renamed from
	CheckMarshallByRefAccess.  Drop parameter.
	(FieldExpr.CheckMarshalByRefAccess): Update.  Change CS1690 to a
	warning.
	(FieldExpr.DoResolve): Call CheckMarshalByRefAccess on
	InstanceExpression.
	* report.cs (AllWarnings): Add CS1690.
	* expression.cs (Argument.Resolve): Use EmptyExpression.OutAccess
	for ref access too.
	(LocalVariableReference.DoResolveBase): Update.

In errors:
	* cs1690.cs, cs1690-2.cs, cs1690-3.cs: Update.
	* cs1690-4.cs, cs1690-5.cs, cs1690-6.cs, cs1690-7.cs: New tests
	inspired by #77752.

svn path=/trunk/mcs/; revision=59586
2006-04-18 11:30:50 +00:00
Raja R Harinath 67597881bd In gmcs:
Support ParameterDefaultValueAttribute in gmcs.  Also applied to
	mcs to keep code differences small.
	* attribute.cs (Attribute.GetParameterDefaultValue): New.
	* typemanager.cs (parameter_default_value_attribute_type): New.
	* parameter.cs (Parameter.ApplyAttributeBuilder): Use them.  Add
	CS1908 check.

In mcs:
	Support ParameterDefaultValueAttribute in gmcs.  Also applied to
	mcs to keep code differences small.
	* attribute.cs (Attribute.GetParameterDefaultValue): New.
	* typemanager.cs (parameter_default_value_attribute_type): New.
	* parameter.cs (Parameter.ApplyAttributeBuilder): Use them.  Add
	CS1908 check.

In errors:
	* gcs1908.cs, gcs1908-2.cs, gcs1908-3.cs, gcs1908-4.cs: New tests
	for DefaultParameterValueAttribute.

In tests:
	* gtest-262.cs: New test for DefaultParameterValueAttribute.

svn path=/trunk/mcs/; revision=58300
2006-03-22 13:56:52 +00:00
Raja R Harinath 84018dfd76 * cs1540-8.cs: New test from #77627.
svn path=/trunk/mcs/; revision=57467
2006-03-01 15:04:37 +00:00
Raja R Harinath 866688f961 Fix #77679.
* mcs/expression.cs (ParameterReference.DoResolveBase): Change return
type to bool.
(ParameterReference.DoResolve, ParameterReference.DoResolveLValue): Update.
* gmcs/expression.cs: Likewise.
* errors/cs1628-2.cs: New test from #77679.

svn path=/trunk/mcs/; revision=57466
2006-03-01 14:56:23 +00:00
Raja R Harinath 4675380f0b Fix #77642.
* mcs/typemanager.cs (GetFullNameSignature): Don't nullref on
protected accessors.
* gmcs/typemanager.cs (GetFullNameSignature): Likewise.
* errors/cs0205-3.cs, errors/CS0205-3-lib.dll: New test based on #77642.

svn path=/trunk/mcs/; revision=57463
2006-03-01 13:49:06 +00:00
Atsushi Eno efc6f16422 2006-02-07 Atsushi Enomoto <[email protected]>
* cs1570-3.cs cs1570-5.cs cs1570-11.cs cs1570-9.cs cs1570-2.cs
	  cs1570-4.cs cs1570-6.cs cs1570.cs cs1570-10.cs cs1570-8.cs :

	  It reports XmlTextReader error message changes as build breakage.

	  That's why I opposed to compare error messages blindly.


svn path=/trunk/mcs/; revision=56609
2006-02-07 07:57:08 +00:00