[Issue 24] GDC backend uses invalid type when using deferencing toPtr on a static array inside of a struct.

2012-11-01 Thread gdc-bugzilla
http://gdcproject.org/bugzilla/show_bug.cgi?id=24 --- Comment #3 from Iain Buclaw 2012-11-01 22:32:17 UTC --- (In reply to comment #2) > When dealing with "if (c.b)" GDC does the correct thing and throws an error. > > In this case b is of type char[1] and we're taking the pointer using .ptr .

[Issue 24] GDC backend uses invalid type when using deferencing toPtr on a static array inside of a struct.

2012-11-01 Thread gdc-bugzilla
http://gdcproject.org/bugzilla/show_bug.cgi?id=24 --- Comment #2 from Daniel Green 2012-11-01 20:23:11 UTC --- When dealing with "if (c.b)" GDC does the correct thing and throws an error. In this case b is of type char[1] and we're taking the pointer using .ptr . The type then becomes char*. A