This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c++/536: Internal compiler error in start_function, at cp/decl.c:13874



>Number:         536
>Category:       c++
>Synopsis:       Internal compiler error in start_function, at cp/decl.c:13874
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 14 08:56:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Gerald Pfeifer
>Release:        2.96
>Organization:
>Environment:
System: FreeBSD taygeta.dbai.tuwien.ac.at 4.1-RELEASE FreeBSD 4.1-RELEASE #0: Fri Aug 4 18:40:26 CEST 2000 root@spica.dbai.tuwien.ac.at:/usr/src/sys/compile/DBAI_KERNEL_4.1 i386


	
host: i386-unknown-freebsd4.1
build: i386-unknown-freebsd4.1
target: i386-unknown-freebsd4.1

>Description:
	When compiling the following snippet:

	  class T;
	  inline void operator<(T&, T&) { }
	  inline void operator<(T&, T&) { }

	GCC (current CVS) crashes:

	  taygeta[185]:~/PROJ/dlv% gccvs x.C
	  x.cc: In function `void operator< (T &, T &)':
	  x.cc:3: redefinition of `void operator< (T &, T &)'
	  x.cc:2: `void operator< (T &, T &)' previously defined here
	  x.cc: In function `void operator< (T &, T &)':
	  x.cc:3: Internal error #20000911.
	  x.cc:3: Internal compiler error in start_function, at cp/decl.c:13874

	(This assertion was added by Mark three days ago. I'm a bit
	astonished that we really don't have any test in the testsuite
	that caught that!)

>How-To-Repeat:

	gcc x.cc 

	(The problem is also reproducible on sparc-sun-solaris2.8.)

>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]