bugDotGNU Portable.NET - Bugs: bug #2124, ILASM ldtoken valuetype...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #2124: ILASM ldtoken valuetype <ID> class <ID> not supported

Submitted by:  James Michael DuPont <mdupont>
Submitted on:  Fri 03 Jan 2003 12:08:20 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Sat 04 Jan 2003 12:46:02 AM UTC, comment #1:

Fix applied 4 Dec 2003 - the bug was in the disassembler,
which should have included a "field" keyword prior to the
type and name information. The assembler is functioning
correctly.

Rhys Weatherley <rweather>
Project Administrator
Fri 03 Jan 2003 12:08:20 PM UTC, original submission:

It seems that ldtoken does not support the following syntax :
ILASM ldtoken valuetype <ID> class <ID>

this syntax is used to handle loading of c++ vtables.

PrivateImplementationDetails2 is the vtable,
the PrivateImplementationDetails2::methodtest is a static
pointer to a method, the
'PrivateImplementationDetails/structtest' is the structure that has that method

Line producing error :
ldtoken valuetype 'PrivateImplementationDetails/structtest' class 'PrivateImplementationDetails2::methodtest'

Error : ./test_details.obj.il:21: parse error, unexpected "`class'", expecting '}'

Input to ilasm

.module test_details.obj
.class private auto ansi PrivateImplementationDetails extends [mscorlib]System.Object
{
}
.class private auto ansi 'PrivateImplementationDetails/structtest' extends System.ValueType
{
}
.class private auto ansi PrivateImplementationDetails2 extends [mscorlib]System.Object
{
.field assembly static valuetype 'PrivateImplementationDetails/structtest' methodtest at 0x00075F4C
}
.class private auto ansi test extends [mscorlib]System.Object
{
.method compilercontrolled instance void test() cil managed
{
// Start of method header: 2048
.maxstack 8
?L2049:
ldtoken class 'PrivateImplementationDetails/structtest'
ldtoken valuetype 'PrivateImplementationDetails/structtest'
ldtoken valuetype 'PrivateImplementationDetails/structtest' class 'PrivateImplementationDetails2::methodtest'
}
}

James Michael DuPont <mdupont>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sat 04 Jan 2003 12:46:02 AM UTCrweatherStatusNone=>(Error - Not Found)
  Open/ClosedOpen=>(Error - Not Found)

Back to the top


Powered by Savane 3.1-cleanup1