public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: Matthias Klose <doko@klose.in-berlin.de> To: gcc-gnats@gcc.gnu.org, debian-gcc@lists.debian.org Cc: martin@v.loewis.de Subject: c++/7306: Regression: gcc-3.x fails to compile virtual inheritance with variable number of argument methode Date: Sun, 14 Jul 2002 04:56:00 -0000 [thread overview] Message-ID: <E17ThoC-0007s8-00@gate.local> (raw) >Number: 7306 >Category: c++ >Synopsis: Regression: gcc-3.x fails to compile virtual inheritance with variable number of argument methode >Confidential: no >Severity: serious >Priority: high >Responsible: unassigned >State: open >Class: rejects-legal >Submitter-Id: net >Arrival-Date: Sun Jul 14 04:56:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: "Stephane Magnenat" <nct@ysagoon.com> >Release: 3.1 (Debian) (Debian unstable) >Organization: The Debian Project >Environment: System: Debian GNU/Linux (unstable) Architecture: i686 host: i386-linux configured with: /mnt/data/gcc-3.1/gcc-3.1-3.1ds2/src/configure -v --enable-languages=c,c++,java,f77,proto,objc,ada --prefix=/usr --mandir=$\(prefix\)/share/man --infodir=$\(prefix\)/share/info --with-gxx-include-dir=$\(prefix\)/include/g++-v3-3.1 --enable-shared --with-system-zlib --enable-long-long --enable-nls --without-included-gettext --enable-clocale=gnu --enable-threads=posix --enable-java-gc=boehm --enable-objc-gc i386-linux >Description: [ Reported to the Debian BTS as report #151357. Please CC 151357@bugs.debian.org on replies. Log of report can be found at http://bugs.debian.org/151357 ] Stephane Magnenat <nct@ysagoon.com> reports: When I try to compile C++ code with virtual inheritance and variable number of argument method, the compilation fails with the following message : bugreport.cpp:35: generic thunk code fails for method `virtual void Virt::p(const char*, ...)' which uses `...' It is working fine with gcc 2.95.x #include <stdio.h> #include <stdarg.h> class Base { public: Base() { } virtual void p(const char *format, ...)=0; }; class Der1: public virtual Base { public: Der1():Base() { } virtual void p(const char *format, ...)=0; }; class Der2: public virtual Base { public: Der2():Base() { } virtual void p(const char *format, ...)=0; }; class Virt:public virtual Der1, public virtual Der2 { public: Virt():Der1(),Der2() { } virtual void p(const char *format, ...) { va_list arglist; va_start(arglist,format); vprintf(format, arglist); va_end(arglist); } }; int main(int argc, char *argv[]) { Virt v; v.p("Hello %d\n", 10); } >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted:
next reply other threads:[~2002-07-14 11:56 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-07-14 4:56 Matthias Klose [this message] 2002-07-14 8:23 lerdsuwa 2002-07-14 10:59 nathan 2002-07-16 1:32 nathan 2002-10-22 11:36 aj
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=E17ThoC-0007s8-00@gate.local \ --to=doko@klose.in-berlin.de \ --cc=151357@bugs.debian.org \ --cc=debian-gcc@lists.debian.org \ --cc=gcc-gnats@gcc.gnu.org \ --cc=martin@v.loewis.de \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).