2024-04-19 12:11 AEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0000216mercuryBugpublic2011-09-06 10:23
Reporterjuliensf 
Assigned Tozs 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
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

-Relationships
+Relationships

-Notes

~0000358

zs (developer)

Fix committed sep 6.
+Notes

-Issue History
Date Modified Username Field Change
2011-09-05 14:56 juliensf New Issue
2011-09-05 17:44 zs Status new => assigned
2011-09-05 17:44 zs Assigned To => zs
2011-09-06 10:23 zs Note Added: 0000358
2011-09-06 10:23 zs Status assigned => resolved
2011-09-06 10:23 zs Resolution open => fixed
+Issue History