This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/563: Internal compiler error in 'const_hash', at varasm.c:2372
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/563: Internal compiler error in 'const_hash', at varasm.c:2372
- From: nill at stargate dot net
- Date: 22 Sep 2000 04:00:32 -0000
- Reply-To: nill at stargate dot net
- Resent-Cc: gcc-prs at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, jason at gcc dot gnu dot org
- Resent-Reply-To: gcc-gnats@gcc.gnu.org, nill@stargate.net
>Number: 563
>Category: c++
>Synopsis: Internal compiler error in 'const_hash', at varasm.c:2372
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Sep 21 21:06:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Inna Nill
>Release: gcc version 2.95.2 (19991024) release-2
>Organization:
>Environment:
Windows 95, running Cygwin
>Description:
Error messages are as follows:
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/specs
gcc version 2.95.2 19991024 (release-2)
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/cpp.exe -lang-c++ -v -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -Di386 -D_X86=1 -D__STDC__=1 -D__stdcall=__attribute__((__stdcall__)) -D__cdecl=__attribute__((__cdecl__)) -D__declspec(x)=__attribute__((x)) -D__i386__ -D_X86=1 -D__STDC__=1 -D__stdcall=__attribute__((__stdcall__)) -D__cdecl=__attribute__((__cdecl__)) -D__declspec(x)=__attribute__((x)) -D__i386 -Asystem(winnt) -Acpu(i386) -Amachine(i386) -D__EXCEPTIONS -remap -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di686 -Dpentiumpro -D__i686 -D__i686__ -D__pentiumpro -D__pentiumpro__ -D__CYGWIN32__ -D__CYGWIN__ -Dunix -D_WIN32 -DWINNT example.cpp example.ii
GNU CPP version 2.95.2 19991024 (release-2) (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/g++-3
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include
/usr/include
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/include
/usr/include
End of search list.
The following default directories have been omitted from the search path:
End of omitted list.
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/cc1plus.exe example.ii -quiet -dumpbase example.cc -version -o example.s
GNU C++ version 2.95.2 19991024 (release-2) (i686-pc-cygwin) compiled by GNU C version 2.95.2 19991024 (release-2).
example.cpp: In function `int main()':
example.cpp:13: Internal compiler error in `const_hash', at varasm.c:2372
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions.
>How-To-Repeat:
Just run:
c++ -o <exename> example.cpp
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="example.cpp"
Content-Disposition: inline; filename="example.cpp"
#include <iostream.h>
class A
{
public:
void One() {cout << "one" << endl;}
void Two() {cout << "two" << endl;}
void Three() {cout << "three" << endl;}
};
int main()
{
void (A::*funcArray[])() = {&A::One, &A::Two, &A::Three};
A *aptr = new A();
for ( int i = 0; i < 3; i++ )
(aptr->*funcArray[i])();
delete aptr;
return 0;
}