public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/7306: Regression: gcc-3.x fails to compile virtual inheritance with variable number of argument methode
@ 2002-07-16  1:32 nathan
  0 siblings, 0 replies; 5+ messages in thread
From: nathan @ 2002-07-16  1:32 UTC (permalink / raw)
  To: 151357, gcc-bugs, gcc-prs, nathan, nct, nobody

Synopsis: Regression: gcc-3.x fails to compile virtual inheritance with variable number of argument methode

Responsible-Changed-From-To: nathan->unassigned
Responsible-Changed-By: nathan
Responsible-Changed-When: Tue Jul 16 01:32:31 2002
Responsible-Changed-Why:
    not working on it (preliminary patch & resons
    for not doing it at http://gcc.gnu.org/ml/gcc-patches/2002-07/msg00650.html)
State-Changed-From-To: analyzed->suspended
State-Changed-By: nathan
State-Changed-When: Tue Jul 16 01:32:31 2002
State-Changed-Why:
    Waiting on multiple entry point handling

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7306


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: c++/7306: Regression: gcc-3.x fails to compile virtual inheritance with variable number of argument methode
@ 2002-10-22 11:36 aj
  0 siblings, 0 replies; 5+ messages in thread
From: aj @ 2002-10-22 11:36 UTC (permalink / raw)
  To: 151357, gcc-bugs, gcc-prs, nct, nobody

Synopsis: Regression: gcc-3.x fails to compile virtual inheritance with variable number of argument methode

State-Changed-From-To: suspended->closed
State-Changed-By: aj
State-Changed-When: Tue Oct 22 11:36:48 2002
State-Changed-Why:
    This bug has been fixed in CVS for GCC 3.3 with this patch
    referenced here:
    http://gcc.gnu.org/ml/gcc-patches/2002-10/msg01136.html
    
    and a number of follow-on patches.  So, this will be fixed
    in GCC 3.3,
    
    Andreas

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7306


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: c++/7306: Regression: gcc-3.x fails to compile virtual inheritance with variable number of argument methode
@ 2002-07-14 10:59 nathan
  0 siblings, 0 replies; 5+ messages in thread
From: nathan @ 2002-07-14 10:59 UTC (permalink / raw)
  To: 151357, gcc-bugs, gcc-prs, nathan, nct, nobody

Synopsis: Regression: gcc-3.x fails to compile virtual inheritance with variable number of argument methode

Responsible-Changed-From-To: unassigned->nathan
Responsible-Changed-By: nathan
Responsible-Changed-When: Sun Jul 14 10:59:24 2002
Responsible-Changed-Why:
    working on a patch (implementing ASM_OUTPUT_VMI_THUNK)

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7306


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: c++/7306: Regression: gcc-3.x fails to compile virtual inheritance with variable number of argument methode
@ 2002-07-14  8:23 lerdsuwa
  0 siblings, 0 replies; 5+ messages in thread
From: lerdsuwa @ 2002-07-14  8:23 UTC (permalink / raw)
  To: 151357, gcc-bugs, gcc-prs, nct, nobody

Synopsis: Regression: gcc-3.x fails to compile virtual inheritance with variable number of argument methode

State-Changed-From-To: open->analyzed
State-Changed-By: lerdsuwa
State-Changed-When: Sun Jul 14 08:23:28 2002
State-Changed-Why:
    Confirmed.  A regression from GCC 2.95.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7306


^ permalink raw reply	[flat|nested] 5+ messages in thread

* c++/7306: Regression: gcc-3.x fails to compile virtual inheritance with variable number of argument methode
@ 2002-07-14  4:56 Matthias Klose
  0 siblings, 0 replies; 5+ messages in thread
From: Matthias Klose @ 2002-07-14  4:56 UTC (permalink / raw)
  To: gcc-gnats, debian-gcc; +Cc: martin


>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:


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-10-22 18:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-16  1:32 c++/7306: Regression: gcc-3.x fails to compile virtual inheritance with variable number of argument methode nathan
  -- strict thread matches above, loose matches on Subject: below --
2002-10-22 11:36 aj
2002-07-14 10:59 nathan
2002-07-14  8:23 lerdsuwa
2002-07-14  4:56 Matthias Klose

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).