I reported a compiler bug to Metrowerks last week. They have denied responsibility, so at their suggestion I have come here for help. Below is my detailed bug report, including a small code snippet that causes the compiler to crash. I also included Metrowerks' response.
A workaround and/or compiler patch would be greatly appreciated.
Mark Ambachtsheer
Schema Software, Inc.
-----------------------------
Mark,
Thanks for writing. It looks like this is a problem with the Symbian tools, as opposed to CodeWarrior. Since we just bundle the tools and SDKs with our environment we do not have control over this software. The best approach would be to report this on Forum Nokia and Ericsson Mobility World:
Matt Pinsonneault
Motorola Metrowerks Developer Support
Service Request Number: (edited out)
Date Opened :
Product :
Abstract : bug report
Description : User: Mark Ambachtsheer
Company: Schema Software, Inc.
Phone: 604-682-3404 x118
Registration Numbers:
CodeWarrior itself: (edited out)
Technical Support: (edited out)
Product Name: C/C++
Version Name: CodeWarrior Development Studio for Symbian OS Professional
Edition 2.5
Running On: Windows 2000
Generating: Symbian THUMB or ARMI
Model of computer used: PC clone
Computer's Processor: PIII
Operating System: Windows 2000
RAM: 512MB
expected: compiles, or gives errors
result: compiler crashes, leaving a .core file
This happens with the Series60 OS kit and the UIQ OS kit shipped with
CodeWarrior.
The crashing application, cc1plus.exe, has the following path on my machine:
D:\Symbian\UIQ_70\EPOC32\gcc\lib\gcc-lib\thumb-epoc-pe\2.9-psion-98r2\cc1plu
s.exe
(This is from the UIQ OS kit shipped with CodeWarrior).
I have also reproduced the source code from the .zip file below.
Please let me know if/when you can provide a fix, and/or a workaround.
This is a bug in the gnu tools from Symbian. As far as I know they are the only ones who build these tools, and they're somewhat of an older GNU source base. I would report the error to Symbian directly, but I wouldn't expect an immediate fix. I would probably just tweak my code until I got it to compile.