Bug 321515 (MONO78795) - [GMCS] the #if problem
Summary: [GMCS] the #if problem
Status: RESOLVED FIXED
Alias: MONO78795
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Miguel de Icaza
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-08 10:58 UTC by YunSong Hwang
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 20:03:02 UTC


---- Reported by hys545@dreamwiz.com 2006-07-08 03:58:39 MST ----

Please fill in this template when reporting a bug, unless you know what you
are doing.
Description of Problem:
Buildfile: file:///home/hys545/ikvm/runtime.org/runtime.build
Target framework: Mono 2.0 Profile
Target(s) specified: IKVM.Runtime


IKVM.Runtime:

      [csc] Compiling 21 files to '/home/hys545/ikvm/bin/IKVM.Runtime.dll'.
      [csc] /home/hys545/ikvm/runtime.org/MemberWrapper.cs(473,1): error
CS1028: Unexpected processor directive (no #if for this #endif)
      [csc] /home/hys545/ikvm/runtime.org/classpath.cs(790,1): error
CS1028: Unexpected processor directive (no #if for this #endif)
      [csc] Compilation failed: 2 error(s), 0 warnings

BUILD FAILED - 0 non-fatal error(s), 2 warning(s)


Steps to reproduce the problem:
1. 
2. 
3. 

Actual Results:


Expected Results:


How often does this happen? 


Additional Information:



---- Additional Comments From vargaz@gmail.com 2006-07-09 06:06:34 MST ----

A testcase:
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

using System;

class Foo {

	public static void Main () {
		object method = null;

			if(method != null
#if !COMPACT_FRAMEWORK
				&& !(method is String)
#endif
			   ) {
			}
	}
}
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

mcs compiles this fine, while gmcs reports:

bug.cs(12,1): error CS1028: Unexpected processor directive (no #if for
this #endif)
Compilation failed: 1 error(s), 0 warnings


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