My code is: //----------------------------------------------- #include <iostream> template < int I > struct _integer { enum { _value = I }; typedef _integer<_value> _type; }; #define _I(Int) \ typename _integer<Int>::_type template< class type > void hi(type) { std::cout << std::endl; } int main() { hi(_I(1)()); //Bug report here. return 0; } //------------------------------------------- And my gcc command is: g++ -O2 test.cpp -o test //------------------------------------------- The bug report is: test.cpp: In function ‘int main()’: test.cpp:72: internal compiler error: Segmentation fault
This was fixed in 4.0.3 see PR 23797. *** This bug has been marked as a duplicate of 23797 ***