Search

Null GuidAttribute Value Crashes CSC by Ryan Lamansky

Closed
as Fixed Help for as Fixed

1
0
Sign in
to vote
Type: Bug
ID: 771420
Opened: 11/16/2012 11:29:53 AM
Access Restriction: Public
0
Workaround(s)
1
User(s) can reproduce this bug
Supplying "null" to a System.Runtime.InteropServices.GuidAttribute crashes the C# compiler.
Details (expand)

Visual Studio/Team Foundation Server/.NET Framework Tooling Version

Visual Studio 2012

Steps to reproduce

Console project with the following:

[System.Runtime.InteropServices.GuidAttribute(null)]
class Program
{
    static void Main(string[] args)
    {
    }
}

Product Language

English

Operating System

Windows 8

Operating System Language

English

Actual results

CS0583: Internal Compiler Error (0xc0000005 at address 00AFFAD5): likely culprit is 'COMPILE'.

Expected results

Successful compile -or- a helpful error message.
File Attachments
0 attachments
Sign in to post a comment.
Posted by Microsoft on 2/7/2013 at 12:49 PM
Thanks for reporting this issue you've encountered with Visual Studio!

We've fixed this issue around null and GuidAttribute in the C# compiler codebase. You'll see this fix in the next version of Visual Studio.

Alex Turner
Senior Program Manager
Visual Basic and C# Compiler
Posted by Microsoft on 11/18/2012 at 7:05 PM
Thank you for submitting feedback on Visual Studio and .NET Framework. Your issue has been reproduced and has been routed to the appropriate VS development team for review. We will contact you if we require any additional information.
Posted by Microsoft on 11/16/2012 at 11:51 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.