Hi!
I tried to compile the following code with Comeau, but it gave me a
puzzling error(The code makes no sense, it is just to show what puzzles me)
class Base
{
public:
Base();
Base(int);
};
class Derived : public Base
{
public:
Derived(int i)
{
Base(0); // Compiles fine, but
Base::Base(0); // Does not compile, Comeau says:
// error: a constructor or destructor may not have its
// address taken
}
};
Is the line valid or not?
greets,
Christoph
I tried to compile the following code with Comeau, but it gave me a
puzzling error(The code makes no sense, it is just to show what puzzles me)
class Base
{
public:
Base();
Base(int);
};
class Derived : public Base
{
public:
Derived(int i)
{
Base(0); // Compiles fine, but
Base::Base(0); // Does not compile, Comeau says:
// error: a constructor or destructor may not have its
// address taken
}
};
Is the line valid or not?
greets,
Christoph
Comment