This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
gcc problem for help
- From: 王 刚伟 <gwwang10 at hotmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 11 Jan 2007 09:43:33 +0800
- Subject: gcc problem for help
- Bcc:
My GNU Tools version information is:
binutils-2.16.92
gcc-4.1-20060407
newlib-1.14.0
My test program is :
class A
{
public:
private:
char string[SIZEOFOBJ];
};
void test(void)
{
A obj;
try
{
throw obj;
}
catch ( A &e )
{
printf("exception !\n");
}
}
when SIZEOFOBJ <= 68, the result is correct,however,when SIZEOFOBJ > 68,the
program crashed.
I spent more than one month to attemp to solve the problem,but I failed.
Can anyone give me a hand on the problem?
Thank you very much!
yours
David Wong
_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn