[Mono-bugs] [Bug 535396] New: On invalid base constructor call: Internal compiler error during parsing.
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Aug 28 19:03:45 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=535396
Summary: On invalid base constructor call: Internal compiler
error during parsing.
Classification: Mono
Product: Mono: Compilers
Version: 2.4.x
Platform: x86-64
OS/Version: Ubuntu
Status: NEW
Severity: Normal
Priority: P5 - None
Component: C#
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: kannan at cakoose.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.13)
Gecko/2009080315 Ubuntu/9.04 (jaunty) Firefox/3.0.13
This code is invalid (an artifact of my C++ habits):
using C = System.Collections.Generic;
class List<T> : C.List<T>
{
public List(int Size) : C.List(Size) {}
}
The base constructor call "C.List(Size)" should actually be "base(Size)".
But instead of getting a regular error message from the compiler, I got this:
$ csc -v Test.cs
System.InvalidCastException: Cannot cast from source type to destination type.
at Mono.CSharp.CSharpParser.yyparse (yyInput yyLex) [0x00000]
at Mono.CSharp.CSharpParser.parse () [0x00000]
Test.cs(5,33): error CS8032: Internal compiler error during parsing, Run with
-v for details
Compilation failed: 1 error(s), 0 warnings
Reproducible: Always
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list