public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/7994: <synopsis of the problem (one line)>
@ 2002-09-21 6:16 V.Haisman
0 siblings, 0 replies; 3+ messages in thread
From: V.Haisman @ 2002-09-21 6:16 UTC (permalink / raw)
To: gcc-gnats
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1784 bytes --]
>Number: 7994
>Category: c++
>Synopsis: <synopsis of the problem (one line)>
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Sat Sep 21 06:16:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: VÁCLAV HAISMAN
>Release: 3.3 20020920 (experimental)
>Organization:
>Environment:
System: FreeBSD logout.sh.cvut.cz 4.6-STABLE FreeBSD 4.6-STABLE #0: Thu Aug 1 01:02:04 CEST 2002 root@logout.sh.cvut.cz:/usr/src/sys/compile/logout i386
host: i386-unknown-freebsd4.6
build: i386-unknown-freebsd4.6
target: i386-unknown-freebsd4.6
configured with: ../srcdir/configure --enable-threads --enable-languages=c,c++ --enable-version-specific-runtime-libs --prefix=/home/4/wilx --with-arch=i686 --with-cpu=i686
>Description:
ICE on attached test case.
logout ~/tmp>c++ -c testcase-cast.cxx
testcase-cast.cxx: In member function `virtual bool REChar::equal(const RE&)':
testcase-cast.cxx:17: error: cannot convert from base `RE' to derived type `
REChar' via virtual base `RE'
testcase-cast.cxx:17: internal compiler error: in comptypes, at cp/typeck.c:913
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
#include <typeinfo>
class RE {
public:
virtual bool equal(const RE& re) = 0;
};
class REChar : virtual public RE {
char ch;
public:
virtual bool equal(const RE& re);
};
bool REChar::equal(const RE& re)
{
if (typeid(re) == typeid(REChar))
if (ch == static_cast<const REChar&>(re).ch)
return true;
return false;
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/7994: <synopsis of the problem (one line)>
@ 2002-09-28 9:55 lerdsuwa
0 siblings, 0 replies; 3+ messages in thread
From: lerdsuwa @ 2002-09-28 9:55 UTC (permalink / raw)
To: V.Haisman, gcc-bugs, gcc-prs, nobody
Synopsis: <synopsis of the problem (one line)>
State-Changed-From-To: analyzed->closed
State-Changed-By: lerdsuwa
State-Changed-When: Sat Sep 28 09:55:02 2002
State-Changed-Why:
Duplicate of PR8031.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7994
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/7994: <synopsis of the problem (one line)>
@ 2002-09-28 7:03 lerdsuwa
0 siblings, 0 replies; 3+ messages in thread
From: lerdsuwa @ 2002-09-28 7:03 UTC (permalink / raw)
To: V.Haisman, gcc-bugs, gcc-prs, nobody
Synopsis: <synopsis of the problem (one line)>
State-Changed-From-To: open->analyzed
State-Changed-By: lerdsuwa
State-Changed-When: Sat Sep 28 07:03:02 2002
State-Changed-Why:
Confirmed.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7994
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-09-28 16:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-21 6:16 c++/7994: <synopsis of the problem (one line)> V.Haisman
2002-09-28 7:03 lerdsuwa
2002-09-28 9:55 lerdsuwa
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).