This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/3828: g++ 2.91.66 iostream and multiple inheritance problem
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/3828: g++ 2.91.66 iostream and multiple inheritance problem
- From: childs3 at llnl dot gov
- Date: 26 Jul 2001 01:58:16 -0000
- Reply-To: childs3 at llnl dot gov
>Number: 3828
>Category: c++
>Synopsis: g++ 2.91.66 iostream and multiple inheritance problem
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jul 25 19:06:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Hank Childs
>Release: gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
>Organization:
>Environment:
(gentoo) PrivateFilters % g++ -v -save-temps t.C
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91 -D__ELF__ -Dunix -Di386 -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__i386__ -D__linux__ -D__unix -D__i386 -D__linux -Asystem(posix) -D__EXCEPTIONS -Asystem(unix) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_i386__ t.C t.ii
GNU CPP version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/usr/include/g++-2
/usr/local/include
/usr/i386-redhat-linux/include
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include
/usr/include
End of search list.
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/cc1plus t.ii -quiet -dumpbase t.cc -version -o t.s
GNU C++ version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) (i386-redhat-linux) compiled by GNU C version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release).
t.C: In method `void D::Print()':
t.C:29: Internal compiler error 980715.
t.C:29: Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'.
t.C:29: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for details.
>Description:
I missed a set of parenthesis for a method. It was getting
sent to an ostream. The method was a virtual function for
a multiply inherited class.
>How-To-Repeat:
Just compile it.
t.C: In method `void D::Print()':
t.C:29: Internal compiler error 980715.
t.C:29: Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'.
t.C:29: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for details
>Fix:
That's for you. (Add the parenthesis to create correct code).
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="t.C"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="t.C"
I2luY2x1ZGUgPGlvc3RyZWFtLmg+CgpjbGFzcyBBCnsKcHVibGljOgogICB2aXJ0dWFsIGNvbnN0
IGNoYXIgKkdldFR5cGUoKSB7IHJldHVybiAiMSI7IH07Cn07CiAKY2xhc3MgQiA6IHZpcnR1YWwg
cHVibGljIEEKewpwdWJsaWM6CiAgIHZpcnR1YWwgY29uc3QgY2hhciAqR2V0VHlwZSgpIHsgcmV0
dXJuICIyIjsgfTsKfTsKCmNsYXNzIEMgOiB2aXJ0dWFsIHB1YmxpYyBBCnsKfTsKCmNsYXNzIEQg
OiB2aXJ0dWFsIHB1YmxpYyBCLCB2aXJ0dWFsIHB1YmxpYyBDCnsKcHVibGljOgogICB2b2lkIFBy
aW50KCk7Cn07CgoKdm9pZApEOjpQcmludCh2b2lkKQp7CiAgICBjZXJyIDw8ICJUeXBlIGlzICIg
PDwgR2V0VHlwZSA8PCAiLiIgPDxlbmRsOwp9Cg==