This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Stack array bounds write purify error with exceptions( with 3.2.3)
- From: Raghu Annaluru <raghu_annaluru at yahoo dot com>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 3 Jan 2005 22:09:14 -0800 (PST)
- Subject: Stack array bounds write purify error with exceptions( with 3.2.3)
Hi,
We are facing a purify "Stack array bounds write"
error with exceptions with gcc 3.2.3.
The code is as under:
#include<iostream>
using namespace std;
void inner() throw(int)
{
int m=10;
throw m;
}
void upper() throw(int)
{
try{
inner();
}
catch(int& n) {
throw ; // <- problem line
}
}
int main()
{
try
{
upper();
}
catch (int& o)
{
cout << "in main block \n" << o << "\n";
}
return 0;
}
-------------------------------
if instead of
throw;
we code it as
throw n;
it works fine. what may be the problem?
thanks & regards,
Raghu
__________________________________
Do you Yahoo!?
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250