This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/8536: Internal Compiler Error in cp/typeck2.c
- From: sunil dot k dot davasam at intel dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 12 Nov 2002 00:35:16 -0000
- Subject: c++/8536: Internal Compiler Error in cp/typeck2.c
- Reply-to: sunil dot k dot davasam at intel dot com
>Number: 8536
>Category: c++
>Synopsis: Internal Compiler Error in cp/typeck2.c
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Nov 11 16:56:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: sunil.k.davasam@intel.com
>Release: unknown-1.0
>Organization:
>Environment:
IA32 Redhat8.0 Product, gcc 3.2 compiler
>Description:
I am getting following error while compiling the testcase ( t1.cpp ) with gcc3.2 compiler.
Error:
------------
t1.cpp:20: Internal compiler error in force_store_init_value, at cp/typeck2.c:
443
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
--------------t1.cpp-------------
#include <stdio.h>
struct C2
{
C2() {
printf("%sC%d()\n", "", 2);
}
int foo() { return 1;}
};
struct C1: virtual C2
{
int C1::*m0;
C1() {
printf("C1()\n");
}
};
C1 o1[2];
int main()
{
return 0;
}
--------------
I am getting this problem only when I tried to create an array of objects. The testcase passes, if I create single instance.
>How-To-Repeat:
cmd> g++ t1.cpp
t1.cpp:20: Internal compiler error in force_store_init_value, at cp/typeck2.c:
443
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="t1.cpp"
Content-Disposition: inline; filename="t1.cpp"
#include <stdio.h>
struct C2
{
C2() {
printf("%sC%d()\n", "", 2);
}
int foo() { return 1;}
};
struct C1: virtual C2
{
int C1::*m0;
C1() {
printf("C1()\n");
}
};
C1 o1[2];
int main()
{
return 0;
}