This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: g++-2.95.2 explicit constructor
- To: gcc-bugs at gcc dot gnu dot org, ulf at sm dot luth dot se
- Subject: Re: g++-2.95.2 explicit constructor
- From: Mike Stump <mrs at windriver dot com>
- Date: Tue, 25 Jan 2000 12:16:18 -0800 (PST)
> 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.