This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]