public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/8536: Internal Compiler Error in cp/typeck2.c
@ 2002-11-19 12:44 sunil.k.davasam
0 siblings, 0 replies; 2+ messages in thread
From: sunil.k.davasam @ 2002-11-19 12:44 UTC (permalink / raw)
To: gcc-gnats
>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;
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c++/8536: Internal Compiler Error in cp/typeck2.c
@ 2002-11-20 2:47 reichelt
0 siblings, 0 replies; 2+ messages in thread
From: reichelt @ 2002-11-20 2:47 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, sunil.k.davasam
Synopsis: Internal Compiler Error in cp/typeck2.c
State-Changed-From-To: open->closed
State-Changed-By: reichelt
State-Changed-When: Wed Nov 13 13:15:30 2002
State-Changed-Why:
Fixed in gcc 3.2.1 and mainline.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8536
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-11-13 21:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-19 12:44 c++/8536: Internal Compiler Error in cp/typeck2.c sunil.k.davasam
2002-11-20 2:47 reichelt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).