This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
bug in palmos gcc? struct assignment crashes
- From: "Thomas Stuefe" <320048722857-0001 at t-online dot de>
- To: gnu-gcc-bug at prep dot ai dot mit dot edu
- Date: Wed, 8 Jan 2003 15:44:50 +0100
- Subject: bug in palmos gcc? struct assignment crashes
- Newsgroups: gnu.gcc.bug,pilot.programmer.gcc
- Organization: T-Online
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