This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Multiple inheritance bug (ICE 980715)


In yesterdays CVS version of egcs, I get the following ICE (I imagine
I'm supposed to get some sort of abiguity error message):

$ gcc -v mult-inhrt-bug.cc
Reading specs from
/home/users/bcurrie/lib/gcc-lib/hppa1.1-stratus-sysv4/egcs-2.91.55/specs
gcc version egcs-2.91.55 19980826 (gcc2 ss-980609 experimental)
 /home/users/bcurrie/lib/gcc-lib/hppa1.1-stratus-sysv4/egcs-2.91.55/cpp
-lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus
-D__GNUC_MINOR__=91 -Dhppa -Dunix -D_FTX -D__hppa__ -D__unix__ -D_FTX
-D__hppa -D__unix -Asystem(unix) -Acpu(hppa) -Amachine(hppa)
-D__EXCEPTIONS -D_PA_RISC1_1 mult-inhrt-bug.cc /var/tmp/ccOmTKGQ.ii
GNU CPP version egcs-2.91.55 19980826 (gcc2 ss-980609 experimental)
(hppa)
#include "..." search starts here:
#include <...> search starts here:
 /home/users/bcurrie/include/g++
 /usr/local/include
 /home/users/bcurrie/hppa1.1-stratus-sysv4/include

/home/users/bcurrie/lib/gcc-lib/hppa1.1-stratus-sysv4/egcs-2.91.55/include
 /usr/include
End of search list.

/home/users/bcurrie/lib/gcc-lib/hppa1.1-stratus-sysv4/egcs-2.91.55/cc1plus
/var/tmp/ccOmTKGQ.ii -quiet -dumpbase mult-inhrt-bug.cc -version -o
/var/tmp/cc4aYZMI.s
GNU C++ version egcs-2.91.55 19980826 (gcc2 ss-980609 experimental)
(hppa1.1-stratus-sysv4) compiled by GNU C version egcs-2.91.53 19980809
(gcc2 ss-980609 experimental).
mult-inhrt-bug.cc: In method `foobar::foobar()':
mult-inhrt-bug.cc:27: Internal compiler error 980715.
mult-inhrt-bug.cc:27: Please submit a full bug report to
`egcs-bugs@cygnus.com'.

here's the offending code
$ cat mult-inhrt-bug.cc
class foo {
  protected:
    int x,y;
  public:
    foo();
    ~foo();
};

class bar {
  public:
    bar();
    ~bar();
    int x();
    int y();
};

class foobar: public foo, public bar {
  public:
    foobar();
    ~foobar();
};

int func(int,int);

foobar::foobar()
{
    func(x,y);
}


BTW, I take it the ICE number is the date the error was previously
found.  Am I correct in this and should I submit bug reports for
numbered ICEs?

Bill
-- 
Leave others their otherness


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]