Bug 22972

Summary: Internal Compiler Error
Product: Base System Reporter: aritz <aritz>
Component: gnuAssignee: David E. O'Brien <obrien>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
ftab.cpp none

Description aritz 2000-11-20 13:20:01 UTC
internal compiler error in 'const_hash', at varasm.c:2372

The file I am compiling looks like this

void Pd::init_ftab(void) {

	struct fdef ftab[] = {
		{"eval", SUBR, &Pd::Eval },
		{ /* many more */ },
		{ NULL }
	}

}

How-To-Repeat: Try and compile my code. I'll send you a copy if necessary.
Comment 1 Poul-Henning Kamp freebsd_committer freebsd_triage 2000-12-18 21:03:32 UTC
Responsible Changed
From-To: freebsd-bugs->obrien

I'm signing this over to our GCC maintainer, but in reality you 
probably want to take this up directly with the GCC project.
Comment 2 Jeroen Ruigrok van der Werven freebsd_committer freebsd_triage 2001-11-15 19:45:32 UTC
State Changed
From-To: open->closed

Try the latest FreeBSD versions which contain updated gcc sources 
and quite possibly solve your problem.
Comment 3 David E. O'Brien freebsd_committer freebsd_triage 2001-11-15 20:30:16 UTC
State Changed
From-To: closed->open

NOONE other than the person the PR is assigned to should be closing it. 
Especially when the one the PR was assigned to was not consulted on the 
closing of it.
Comment 4 Nate Eldredge 2005-10-18 07:45:57 UTC
This code does indeed crash gcc 2.95.  However it works fine on modern 
versions such as 3.4.2.  Maintainers, care to close this ancient bug?

The quoted-printable encoding in the PR was kind of a pain to sort out.  I 
have posted the decoded version at 
http://www.cs.hmc.edu/~nate/pr-22972.cc.gz for reference.


-- 
Nate Eldredge
nge@cs.hmc.edu
Comment 5 Remko Lodder freebsd_committer freebsd_triage 2007-03-22 06:51:46 UTC
State Changed
From-To: open->closed

GCC 3.4.2 covers this nicely, closing the ticket.