Logo Search packages:      
Sourcecode: gcc-2.95 version File versions

bug-120333.cc

#include <iostream.h> 
#include <string> 
 
class ferror_open { 
  int a; 
public: 
  ferror_open():a(2){}; 
  int message(){ 
    return a; 
  }; 
}; 
 
int main() 
{ 
  try { 
          throw ferror_open(); 
  } catch(ferror_open d){ cout << d.message() << endl;}; 
} 

Generated by  Doxygen 1.6.0   Back to index