Bugzilla – Bug 321515
[GMCS] the #if problem
Last modified: 2007-09-15 21:24:23 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".