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]

Re: g++-2.95.2 explicit constructor


> Date: Tue, 25 Jan 2000 11:22:43 +0100
> From: Ulf Larsson <ulf@sm.luth.se>
> To: gcc-bugs@gcc.gnu.org

> struct A
> {
>   explicit A(int);
> };

> struct B
> {
>   B(A const &);
> };

> struct C
> {
>   C(B const &);
> };

> void
> f()
> {
>   C c(B(A(1)));
> }

Are you missing B (A a) or A (A)?  I'm wondering if this isn't a bug.

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