From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) Description of problem: Construction: template <int i, int j> longint<(i>j?i:j)> causes an internal compiler error. See Additional information for an example program. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. Extract program from additional information box and paste to an empty file 2. compile using g++ 3. Actual Results: bug2.cc: In function `int main ()': bug2.cc:7: Internal error: Segmentation fault. Please submit a full bug report. See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions. Additional info: This is an example program: ------------------------------------------- template <int i> class longint {}; template <int i, int j> longint<(i>j?i:j)> operator+( longint<i> a, longint<j> b ) { } int main() { longint<3> a; longint<4> b, c; c = a+b; }
Verified this works ok on g++ 3.2 / 8.0