bug in palmos gcc? struct assignment crashes
Thomas Stuefe
320048722857-0001@t-online.de
Mon Jan 13 05:17:00 GMT 2003
Greetings,
am I blind (always possible) or is this a bug in the palmos gcc:
typedef struct _mystruct_t { ... } mystruct_t;
/* compilation unit 1 exports: */
const mystruct_t s1 = {...};
/* compilation unit 2: */
mystruct_t s2;
s2 = s1;
In the above code, I get a memory exception in POSE when I hit the
assignment s2 = s1.
If I remove the "const" from the declaration of s1, the code works.
If I put the structure declarations in one compilation unit, the code works,
too.
Did anyone see this behaviour?
thomas stuefe
More information about the Gcc-bugs
mailing list