Mercury Bugs - mercury
View Issue Details
0000177mercuryBugpublic2011-01-07 17:232011-01-19 11:05
Reporterjuliensf 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000177: incorrect C# code generated when compiling extras/moose
DescriptionAttempting to build moose in the C# grade (rotd-2011-01-07) results in the following:

Mercury/css/misc.cs(206,8): error CS1519: Unexpected symbol `=' in class, struct, or interface member declaration
Mercury/css/misc.cs(210,45): error CS0116: A namespace can only contain types and namespace declarations
Mercury/css/misc.cs(228,22): error CS0116: A namespace can only contain types and namespace declarations
Mercury/css/misc.cs(245,45): error CS0116: A namespace can only contain types and namespace declarations
Mercury/css/misc.cs(263,22): error CS0116: A namespace can only contain types and namespace declarations
Mercury/css/misc.cs(280,45): error CS0116: A namespace can only contain types and namespace declarations
Mercury/css/misc.cs(289,22): error CS0116: A namespace can only contain types and namespace declarations
Mercury/css/misc.cs(297,43): error CS0116: A namespace can only contain types and namespace declarations
Mercury/css/misc.cs(312,43): error CS0116: A namespace can only contain types and namespace declarations
Mercury/css/misc.cs(327,43): error CS0116: A namespace can only contain types and namespace declarations
Mercury/css/misc.cs(342,43): error CS0116: A namespace can only contain types and namespace declarations
Mercury/css/misc.cs(356,43): error CS0116: A namespace can only contain types and namespace declarations
Mercury/css/misc.cs(375,14): error CS1518: Expected `class', `delegate', `enum', `interface', or `struct'
Mercury/css/misc.cs(381,1): error CS8025: Parsing error
TagsNo tags attached.
Attached Files

Notes
(0000299)
wangp   
2011-01-12 16:38   
:- type '' ---> ''. is just silly and should be banned.

I believe it is unused anyway.
(0000301)
juliensf   
2011-01-19 00:05   
I have removed the above type from moose.
(There is probably still an issue here with name mangling for the C# backend in general?)
(0000302)
wangp   
2011-01-19 11:05   
Probably, though the C# backend uses the same name mangling algorithm as everything else. '' just happens to work in C grades because everything is prefixed.

Issue History
2011-01-07 17:23juliensfNew Issue
2011-01-12 16:38wangpNote Added: 0000299
2011-01-19 00:05juliensfNote Added: 0000301
2011-01-19 11:05wangpNote Added: 0000302