[Mono-bugs] [Bug 720031] New: gmcs "error CS0584: Internal compiler error", csc works.
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Sep 23 06:27:18 EDT 2011
https://bugzilla.novell.com/show_bug.cgi?id=720031
https://bugzilla.novell.com/show_bug.cgi?id=720031#c0
Summary: gmcs "error CS0584: Internal compiler error", csc
works.
Classification: Mono
Product: Mono: Compilers
Version: 2.10.x
Platform: x86-64
OS/Version: Linux
Status: NEW
Severity: Major
Priority: P5 - None
Component: C#
AssignedTo: michael.miller at suse.com
ReportedBy: htl10 at users.sourceforge.net
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.2 (KHTML,
like Gecko) Chrome/15.0.874.21 Safari/535.2
same machine, csc under wine works, gmcs with the equivalent command line (and
same source file and 3rd party DLLs), throws internal compiler error:
gmcs -debug+ -lib:... -r:<3rdpartydll> -target:exe -out:bin/Debug/Mycode.exe
Mycode.cs
Mycode.cs(73,24): error CS0584: Internal compiler error: Method not found:
'3rdpartyClass.somepublicMethod'.
Mycode.cs(73,17): error CS0266: Cannot implicitly convert type `object' to
`3rdpartyClass'. An explicit conversion exists (are you missing a cast?)
Compilation failed: 2 error(s), 0 warnings
The line concerned is just:
3rdpartyClass myinstance = new 3rdpartyClass();
It tooks me a few hours wondering what's wrong with my code (the line is a
small set of new addition to an existing project which has been working fine
with gmcs for years), until I tried with csc and it worked - and gmcs still
does not.
I have an equivalent nmake/csc-based makefile which I keep in sync with GNU
make/gmcs .
Reproducible: Always
Steps to Reproduce:
1. compile code under gmcs (type make) -
2.
3.
Actual Results:
internal compiler error
Expected Results:
finishes compilation just like csc.
My code is alright but the 3rd party dll is proprietary - I am willing to try
anything including build from git, if necessary.
Since csc works and gmcs does not (and this is one a small addition to an
existing project which has been working with both for years), and an internal
compiler error is serious, I guess this is of "Major" Severity, although please
feel free to downrate it back to normal.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list