From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10417 invoked by alias); 14 Jul 2002 11:56:00 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 10382 invoked by uid 71); 14 Jul 2002 11:56:00 -0000 Resent-Date: 14 Jul 2002 11:56:00 -0000 Resent-Message-ID: <20020714115600.10381.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org, "Stephane Magnenat" Resent-Reply-To: gcc-gnats@gcc.gnu.org, 151357@bugs.debian.org Received: (qmail 4285 invoked from network); 14 Jul 2002 11:49:17 -0000 Received: from unknown (HELO hirsch.in-berlin.de) (192.109.42.6) by sources.redhat.com with SMTP; 14 Jul 2002 11:49:17 -0000 Received: from gate.local (mail@dsl-213-023-021-156.arcor-ip.net [213.23.21.156]) by hirsch.in-berlin.de (8.12.1/8.12.1/Debian -2) with ESMTP id g6EBnFEb010712; Sun, 14 Jul 2002 13:49:16 +0200 Received: from doko by gate.local with local (Exim 3.35 #1 (Debian)) id 17ThoC-0007s8-00; Sun, 14 Jul 2002 13:45:00 +0200 Message-Id: Date: Sun, 14 Jul 2002 04:56:00 -0000 From: Matthias Klose Reply-To: 151357@bugs.debian.org To: gcc-gnats@gcc.gnu.org, debian-gcc@lists.debian.org Cc: martin@v.loewis.de X-Send-Pr-Version: 3.113 X-GNATS-Notify: "Stephane Magnenat" Subject: c++/7306: Regression: gcc-3.x fails to compile virtual inheritance with variable number of argument methode X-SW-Source: 2002-07/txt/msg00441.txt.bz2 List-Id: >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" >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 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 #include 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: