[Mono-bugs] [Bug 76995][Nor] New - extern alias lookup fails

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Dec 14 12:53:35 EST 2005

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by atsushi at ximian.com.


--- shadow/76995	2005-12-14 12:53:35.000000000 -0500
+++ shadow/76995.tmp.31812	2005-12-14 12:53:35.000000000 -0500
@@ -0,0 +1,59 @@
+Bug#: 76995
+Product: Mono: Compilers
+Version: 1.1
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: C#
+AssignedTo: calberto.cortez at gmail.com                            
+ReportedBy: atsushi at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: extern alias lookup fails
+I tried to compile the extern alias example below. It works with csc but
+not with (g)mcs.
+extern alias FULL;
+using System;
+using NameValueCollection =
+public class test
+Compile the above with -r:FULL=/path/to/mcs/class/lib/(profile)/System.dll.
+(also -noconfig, when compiling with csc.)
+Actual Results:
+$ gmcs extern-alias.cs -r:FULL=../../svn/mcs/class/lib/net_2_0/System.dll
+extern-alias.cs(3,36): error CS0432: Alias `FULL' not found
+extern-alias.cs(3,1): error CS0246: The type or namespace name
+`FULL::System.Collections.Specialized.NameValueCollection' could not be
+found. Are you missing a using directive or an assembly reference?
+Compilation failed: 2 error(s), 0 warnings
+Expected Results:
+$ csc extern-alias.cs -r:FULL=../../svn/mcs/class/lib/net_2_0/System.dll
+-noconfig -nologo
+error CS5001: Program 'c:\cygwin\home\atsushi\tests\gmcs-bugs\extern-alias.exe'
+        does not contain a static 'Main' method suitable for an entry point
+How often does this happen? 
+Additional Information:
+Toshok needs it for 2.0 System.Configuration.dll.

More information about the mono-bugs mailing list