Bug 321693 (MONO78980) - [GMCS] generating invalid IL
Summary: [GMCS] generating invalid IL
Status: RESOLVED FIXED
Alias: MONO78980
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.1
Hardware: Other Linux
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Martin Baulig
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-30 22:31 UTC by Nathan Walp
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
C# source code demonstrating bug. (258 bytes, text/plain)
2006-07-30 22:32 UTC, Thomas Wiest
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 20:04:58 UTC


---- Reported by faceprint@faceprint.com 2006-07-30 15:31:23 MST ----

Please fill in this template when reporting a bug, unless you know what you
are doing.
Description of Problem:

Compile the attached .cs file with GMCS.  The Invalid function produces
invalid IL, while the Valid function, which does the same thing a little
more explicitly, produces valid IL.


Steps to reproduce the problem:
1. Compile the attached .cs
2. Look at the IL generated.

Actual Results:
Invalid IL is generated for the Invalid function.


Expected Results:
Valid IL (very similar if not identical to the IL for the Valid function)
should be generated for the Invalid function.


How often does this happen? 
Every time.


Additional Information:
I've reproduced this with gmcs 1.1.16.1 on a Linux box, 1.1.14.0 on a win32
box, and 1.1.13.2 on a solaris box.



---- Additional Comments From faceprint@faceprint.com 2006-07-30 15:32:24 MST ----

Created an attachment (id=170188)
C# source code demonstrating bug.




---- Additional Comments From miguel@ximian.com 2006-10-07 11:43:48 MST ----

Peverify reports:
quack$ peverify inv.exe

Microsoft (R) .NET Framework PE Verifier.  Version  2.0.50727.42
Copyright (c) Microsoft Corporation.  All rights reserved.

[IL]: Error: [C:\cygwin\home\miguel\inv.exe :
Testcase`1[T]::Invalid][offset 0x0000000F][found address of ref ]
Unexpected type on the stack.
1 Error Verifying inv.exe



---- Additional Comments From martin@ximian.com 2006-10-09 09:41:47 MST ----

Fixed in SVN; added gtest-293.cs.

Imported an attachment (id=170188)

Unknown bug field "cf_op_sys_details" encountered while moving bug
   <cf_op_sys_details>Ubuntu 6.06 + mono 1.1.16.1</cf_op_sys_details>