Bug 24537 - mcs ignores missing bracket
Summary: mcs ignores missing bracket
Alias: None
Product: Compilers
Classification: Mono
Component: C# ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Marek Safar
Depends on:
Reported: 2014-11-14 12:43 UTC by Rolf Bjarne Kvinge [MSFT]
Modified: 2014-11-18 08:14 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Rolf Bjarne Kvinge [MSFT] 2014-11-14 12:43:27 UTC
Test case:

    using System.Runtime.InteropServices;
    public class TestApp {
        static void Main ([MarshalAs (UnmanagedType.LPStr) string[] args) {}

The attribute on the parameter is missing a ]

Expected behavior: compiler error.
Actual behavior: successful compilation.

> mono --version
Mono JIT compiler version 3.10.0 ((detached/633e444 Thu Oct  2 22:07:37 EDT 2014)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           normal
	SIGSEGV:       altstack
	Notification:  kqueue
	Architecture:  x86
	Disabled:      none
	Misc:          softdebug 
	LLVM:          yes(3.4svn-mono-(detached/e656cac)
	GC:            sgen
Comment 1 Marek Safar 2014-11-18 08:14:28 UTC
Fixed in master