Mercury Bugs - mercury
View Issue Details
0000216mercuryBugpublic2011-09-05 14:562011-09-06 10:23
Reporterjuliensf 
Assigned Tozs 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000216: hlc grade generates empty structs in static data
DescriptionThe generated C code for library/char.m in the hlc.gc grade contains an empty struct and also an array of empty structs that is referenced anywhere else within the module. This breaks compilation with Visual C, since it doesn't support empty struct definitions. Since the definition isn't referred to it's
pointless anyway.

/* sealed */ struct mercury__char__vector_common_type_2_0_s {
};


 static /* final */ const struct mercury__char__vector_common_type_2_0_s mercury__char_vector_common_2[103] = {
  /* row 0 */
  {

  },
  /* row 1 */
  {

  },
  /* row 2 */
  {

  },
  /* row 3 */
  {

  },
Additional InformationThis affects a number of other stdlib modules, char.m is just the first one that is compiled.
TagsNo tags attached.
Attached Files

Notes
(0000358)
zs   
2011-09-06 10:23   
Fix committed sep 6.

Issue History
2011-09-05 14:56juliensfNew Issue
2011-09-05 17:44zsStatusnew => assigned
2011-09-05 17:44zsAssigned To => zs
2011-09-06 10:23zsNote Added: 0000358
2011-09-06 10:23zsStatusassigned => resolved
2011-09-06 10:23zsResolutionopen => fixed