g++ inherit.cpp inherit.cpp:15: Internal compiler error. inherit.cpp:15: Please submit a full bug report. inherit.cpp:15: See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
#include<iostream> class A { protected: int a_v; }; class B:public A { protected : int b_v; }; class A::A() { a_v=10; cout<<"ctr A"<<endl; } class B::B() { b_v=15; cout<<"ctr B"<<endl; } class A::~A() {cout<<"Dtr A"<<endl;} class B::~B() {cout<<"Dtr B"<<endl;} main() { A x; B y; cout<<x.a_v<<endl; cout<<y.b_v<<endl; return 0; } -- Summary: g++ internal compiler error Product: gcc Version: 2.95.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: vikas dot saroha at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38215