Bug 66262

Summary: internal gcc error on bad code involving STL and templates
Product: [Retired] Red Hat Linux Reporter: Need Real Name <he>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED CURRENTRELEASE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3CC: jjmelias
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-12-15 20:51:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Need Real Name 2002-06-06 21:19:10 UTC
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:

Comment 1 Need Real Name 2002-06-11 13:42:43 UTC
*** Bug 66489 has been marked as a duplicate of this bug. ***

Comment 2 Alan Cox 2002-12-15 20:51:14 UTC
Verified ok in 8.0 g++ 3.2