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++/601: Newest snapshopts generate ICE on overloading operators



>Number:         601
>Category:       c++
>Synopsis:       Newest snapshopts generate ICE on overloading operators
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 04 09:06:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     sefer@hotmail.com
>Release:        unknown-1.0
>Organization:
>Environment:
P2/400 - Linux 2.2.17 - RH6.2 (glibc 2.1.3)
>Description:
It seems that on some types of operator overloading the newest c++ compiler snapshot seems to generate an internal compiler error.
I have seen this happen on "new" overloading.

> /opt/gcc-2.96/bin/gcc --save-temps -v b.cc
Reading specs from /opt/gcc-2.96/lib/gcc-lib/i686-pc-linux-gnu/2.97/specs
gcc version 2.97 20001001 (experimental)
 /opt/gcc-2.96/lib/gcc-lib/i686-pc-linux-gnu/2.97/cpp0 -lang-c++ -D__GNUG__=2 -v -D__GNUC__=2 -D__GNUC_MINOR__=97 -D__GNUC_PATCHLEVEL__=0 -D__ELF__ -Dunix -Dlin
ux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem(posix) -D__STDC_HOSTED__=1 -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_i686__ -D__tune_pentiumpro__ b.cc b.ii
GNU CPP version 2.97 20001001 (experimental) (cpplib) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/qt/include
 /opt/gcc-2.96/include/g++-3
 /usr/local/include
 /opt/gcc-2.96/lib/gcc-lib/i686-pc-linux-gnu/2.97/include
 /opt/gcc-2.96/i686-pc-linux-gnu/include
 /usr/include
End of search list.
 /opt/gcc-2.96/lib/gcc-lib/i686-pc-linux-gnu/2.97/cc1plus -lang-c++ b.ii -quiet -dumpbase b.cc -version -o b.s
GNU C++ version 2.97 20001001 (experimental) (i686-pc-linux-gnu) compiled by GNU C version 2.97 20001001 (experimental).
b.cc:3: `operator new' takes type `size_t' as first parameter
b.cc:3: Internal error #73.
b.cc:3: Internal compiler error in , at method.c:1461
   Please submit a full bug report.
   See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
This is the code (there's no preprocessed code - since I don't include anything here).

void *operator new(unsigned long size,const char *curFile,unsigned long
curLine,const char *curFunction)
{
}

void main()
{
}
>Fix:
Beats me ;-)
>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]