Bug 320182 (MONO77396) - [GMCS] type lookup after #77403 is fixed
Summary: [GMCS] type lookup after #77403 is fixed
Status: RESOLVED FIXED
Alias: MONO77396
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.1
Hardware: Other Other
: P3 - Medium : Minor
Target Milestone: ---
Assignee: Raja R Harinath
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-28 21:29 UTC by Jan Oravec
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

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


---- Reported by jan.oravec@6com.sk 2006-01-28 14:29:59 MST ----

Description of Problem:

GMCS crashes on the following input:

class A : C<B>
{
  class B {}
}
 
interface C<X> {}


Steps to reproduce the problem:
1. compile the code

Actual Results:

Unhandled Exception: System.NullReferenceException: Object reference not
set to an instance of an object
in <0x001fd> Mono.CSharp.TypeContainer:DoDefineMembers ()
in <0x0005e> Mono.CSharp.TypeContainer:DefineMembers ()
in <0x002fb> Mono.CSharp.RootContext:PopulateTypes ()
in <0x00d15> Mono.CSharp.Driver:MainDriver (System.String[] args)
in <0x00079> Mono.CSharp.Driver:Main (System.String[] args)



Expected Results:

Do not crash.


How often does this happen? 

Always



---- Additional Comments From martin@ximian.com 2006-02-08 09:25:03 MST ----

Hari, can I steal this one from you ?



---- Additional Comments From martin@ximian.com 2006-02-08 13:49:48 MST ----

error test



---- Additional Comments From martin@ximian.com 2006-02-08 14:07:26 MST ----

A related non-generic test case:

=====
class A : B
{
        public class B
        { }
}

interface C
{ }
=====

This must report an error.



---- Additional Comments From jan.oravec@6com.sk 2006-06-19 20:16:45 MST ----

I think the generic example should be compilable. (I couldn't see any
problem why non-generic example shouldn't compile too, but I am not so
sure about that.)




---- Additional Comments From martin@ximian.com 2006-06-21 09:49:06 MST ----

You're right, the generic example should compile.  Of course, the
non-generic one is clearly an error test.



---- Additional Comments From jan.oravec@6com.sk 2006-07-19 06:45:09 MST ----

Is there any ETA when this could be fixed? (compilability of the
generics case).




---- Additional Comments From rharinath@novell.com 2006-08-02 10:09:14 MST ----

Should be fixed in SVN r63248.



---- Additional Comments From jan.oravec@6com.sk 2006-08-02 11:13:34 MST ----

Works as expected (together with #77963). Thanks.

This bug depended on bug(s) 77403.
This bug blocked bug(s) 77963.

Unknown operating system unknown. Setting to default OS "Other".