From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020605 Description of problem: std::bind2nd(std::minus, 1.0) causes an internal compiler error. Ofcourse template argument for std::minus is missing. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1.compile the following program with g++ from gcc-2.96-110 #include<functional> int main() { std::bind2nd(std::minus, 1.0); } Actual Results: bug.cpp: In function `int main ()': bug.cpp:4: Internal compiler error in expand_call, at calls.c:2250 Please submit a full bug report. See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions. Expected Results: message reporting a syntax error Additional info:
*** Bug 66489 has been marked as a duplicate of this bug. ***
Verified ok in 8.0 g++ 3.2