Boost logo

Boost :

From: Joaquín Mª López Muñoz (joaquin_at_[hidden])
Date: 2004-05-25 11:59:16


Joaquín Mª López Muñoz ha escrito:

> John Maddock ha escrito:
>
> > > Warning: this diff has not actually been checked with ICC 8.0, but
> > > I'm confident it'll work as the problem looks exactly the same as with
> > > ICC 7.0:
> >
> > >I've just tested with ICC 8.0 and this patch surely works.
> >
> > Well it solves the problem, but the EDG based compilers are amongst the most
> > conforming compilers we have access to, are we sure that this is a compiler
> > bug, rather than a code bug? If yes, do you have a test case: as I can pass
> > it on to Intel.
> >
>
> Hi John, I think I have reduced the problem to an actual bug in
> EDG:
>

The bug demo can be reduced a little further:

class A
{
protected:
  int x;
};

class AA:public A
{
public:
  using A::x;
};

class foo:public A // <<-- foo is the culprit!
{
  friend class T;
};

class T
{
public:
  AA aa;
  void foo(){aa.x=0;}
};

int main()
{
}

Same behavior and conditions for the error as before.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk