[Mono-dev] mcs patch to report Const location

Atsushi Eno atsushi at ximian.com
Thu Aug 18 07:10:08 EDT 2005

Hi Marek,

Marek Safar wrote:
> Hello Eno,
>> I noticed that mcs does not report locations for constants. The
>> attached patch fixes this matter. The patch is pretty massive
>> (as I had to compress it), but the fixes are pretty simple - I
>> just added Location parameter to everywhere BlahConstant is
>> created.
> Unfortunately not for constants only. Could you make diff against mcs
> SVN HEAD version ?

The patch got out of date (just in two days after) - anyways
attached the patch for the latest head.

>> BTW I noticed that compiler-tester does not work fine for libs
>> and partial sources - maybe someone missed to commit it?
> Could you be more specific ?

It stops at *-lib.cs, saying below:

test-317.cs...  OK
test-318.cs...  OK
Unhandled Exception: System.NullReferenceException: Object reference not 
set to an instance of an object
in [0x00020] (at 
TestRunner.PositiveChecker:ExecuteFile (System.Reflection.MethodInfo 
entry_point, System.String filename)
in [0x00147] (at 
TestRunner.PositiveChecker:Check (System.String filename)
in [0x0006c] (at 
TestRunner.Checker:Do (System.String filename)
in [0x00150] (at 
TestRunner.Tester:Main (System.String[] args)
make[1]: *** [run-test-local] Error 1
make[1]: Leaving directory `/home/atsushi/svn/mcs/tests'
make: *** [do-run-test] Error 1

The attached workaround (not a fix) lets run-test completed, but
it still reports below:

The latest changes caused regression in 4 file(s)

They happen even though I haven't made any changes.

Atsushi Eno
-------------- next part --------------
A non-text attachment was scrubbed...
Name: const-location-2.tar.bz2
Type: application/octet-stream
Size: 8062 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050818/e3c3dad4/attachment.obj 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: compiler-tester-lib-go-away.patch
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050818/e3c3dad4/attachment.pl 

More information about the Mono-devel-list mailing list