Bug 21390

Summary: error CS0584: Internal compiler error: Cannot cast from source type to destination type
Product: [Mono] Compilers Reporter: Christian <rinderkn>
Component: C#Assignee: Marek Safar <masafa>
Status: RESOLVED FIXED    
Severity: normal CC: mono-bugs+mono
Priority: ---    
Version: 3.2.x   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Tags: Is this bug a regression?: ---
Last known good build:
Attachments: This C# program triggers an internal error when compiled with mcs

Description Christian 2014-07-17 09:48:19 UTC
Created attachment 7408 [details]
This C# program triggers an internal error when compiled with mcs

When compiling the attached program with mcs (Mono C# compiler version 3.2.8.0) on Linux, an internal error is reported and located at the return instruction located in the class B<W>. It reads:

bug.cs(10,34): error CS0584: Internal compiler error: Cannot cast from source type to destination type.
Compilation failed: 1 error(s), 0 warnings

Christian
Comment 1 Marek Safar 2014-07-22 08:19:14 UTC
Fixed in master