Internal compiler error : segmentation fault with g++4.3.5
问题 Here is the code //fail_.cpp template< unsigned char X, class L> class A { public: typedef void (A::*fptr)(); class B { public: B(typename A< X, L> ::fptr ); }; }; template < unsigned char X, typename L > A<X,L>::B::B ( fptr ) { } g++ -c fail_.cpp gives fail_.cpp:11: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See < file:///usr/share/doc/gcc-4.3/README.Bugs > for instructions. Looks like a bug to me in g++4.3.5, g++4.4