public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc problem for help
@ 2007-01-11  1:43 王 刚伟
  0 siblings, 0 replies; only message in thread
From: 王 刚伟 @ 2007-01-11  1:43 UTC (permalink / raw)
  To: gcc-help

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb2312; format=flowed, Size: 775 bytes --]

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  

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-01-11  1:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-11  1:43 gcc problem for help 王 刚伟

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).