2024-11-21 23:34 AEDT

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0000177mercuryBugpublic2011-01-19 11:05
Reporterjuliensf 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
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

-Relationships
+Relationships

-Notes

~0000299

wangp (developer)

:- type '' ---> ''. is just silly and should be banned.

I believe it is unused anyway.

~0000301

juliensf (administrator)

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 (developer)

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.
+Notes

-Issue History
Date Modified Username Field Change
2011-01-07 17:23 juliensf New Issue
2011-01-12 16:38 wangp Note Added: 0000299
2011-01-19 00:05 juliensf Note Added: 0000301
2011-01-19 11:05 wangp Note Added: 0000302
+Issue History