Bug 313042 (MONO50117) - mcs does not report CS3005 (case insensitive names in CLSCompliant classes)
Summary: mcs does not report CS3005 (case insensitive names in CLSCompliant classes)
Status: RESOLVED MOVED
Alias: MONO50117
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Enhancement
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-25 10:03 UTC by ginga
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 18:18:15 UTC


---- Reported by ginga@kit.hi-ho.ne.jp 2003-10-25 03:03:18 MST ----

If target classes violates rules on CLS compliance, MS.NET csc reports 
them, but mcs seems not. At least I noticed that there are same named 
members in case-insensitive, it is not reported by mcs. For example,

--------------
using System;

[assembly:CLSCompliant (true)]
public class Test
{
        public Test Foo;
        protected Test foo;
}
--------------

This class cannot be compiled under csc.

$ csc /t:library clscompliant.cs
Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.

clscompliant.cs(7,17): error CS3005: Identifier 'Test.foo' differing only 
in case is not CLS-compliant
clscompliant.cs(6,14): (Location of symbol related to previous error)


How often does this happen? 
- always.



---- Additional Comments From bmaurer@users.sf.net 2003-11-18 12:54:20 MST ----



*** This bug has been marked as a duplicate of https://bugzilla.novell.com/show_bug.cgi?id=MONO30285 ***


Unknown operating system unknown. Setting to default OS "Other".
This bug was marked DUPLICATE in the database it was moved from.
    Changing resolution to "MOVED"