This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

bug in palmos gcc? struct assignment crashes


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





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]