Package: gcc-3.3
Version: 1:3.3.1-1
Severity: important


-- System Information:
Debian Release: testing/unstable
Architecture: powerpc
Kernel: Linux yukiko 2.4.21-ben2 #2 Sun Aug 10 18:47:57 CEST 2003 ppc
Locale: LANG=C, LC_CTYPE=C

Versions of packages gcc-3.3 depends on:
ii  binutils                 2.14.90.0.5-0.2 The GNU assembler, linker and bina
ii  cpp-3.3                  1:3.3.1-1       The GNU C preprocessor
ii  gcc-3.3-base             1:3.3.1-1       The GNU Compiler Collection (base 
ii  libc6                    2.3.1-17.0.2    GNU C Library: Shared libraries an
ii  libgcc1                  1:3.3.1-1       GCC support library

-- no debconf information

Thereafter is include the code that fails to compile

#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);
}
                



Reply via email to