View Issue Details

IDProjectCategoryView StatusLast Update
0000884LDMudImplementationpublic2020-08-24 00:19
Reporterzesstra Assigned ToGnomi  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Platformx86_64OSMacOS XOS Version10.9.x
Summary0000884: to_struct: error converting related structs
DescriptionWhen the program given below is compiled, the blueprint destroyed and loaded again, the to_struct() call fails with the error:
"Can't convert struct A struct_convert.c #548395 into struct B struct_convert.c #592866. Neither is a base of the other."

I suspect, this might be an issue with the struct reactivation when reloading programs, e.g. one is reactivated and the other not.

Steps To Reproduce
#pragma strong_types,pragma rtt_checks

struct A {
  int one;
};

struct B (A) {
  int two;
};

void test () {
  struct B b = to_struct((<A> 100), ());
} 
TagsNo tags attached.
External Data (URL)

Relationships

related to 0000838 resolvedGnomi Struct reactivation fails when used in complex types 

Activities

Gnomi

2020-08-24 00:19

manager   ~0002550

Fixed in my 363preparations branch.

Issue History

Date Modified Username Field Change
2020-08-15 11:07 zesstra New Issue
2020-08-23 15:31 zesstra Steps to Reproduce Updated
2020-08-23 15:31 zesstra Steps to Reproduce Updated
2020-08-24 00:18 Gnomi Assigned To => Gnomi
2020-08-24 00:18 Gnomi Status new => assigned
2020-08-24 00:19 Gnomi Status assigned => resolved
2020-08-24 00:19 Gnomi Resolution open => fixed
2020-08-24 00:19 Gnomi Note Added: 0002550
2020-08-24 00:19 Gnomi Relationship added related to 0000838