This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Missing constructor call...
- From: Gokhan Kisacikoglu <kisa at centropolisfx dot com>
- To: Mike Harrold <mharrold at cas dot org>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Mon, 15 Jul 2002 17:56:12 -0700
- Subject: Re: Missing constructor call...
- Organization: Centropolis Effects, LLC
- References: <200207160027.g6G0REl15177@mah21awu.cas.org>
- Reply-to: kisa at centropolisfx dot com
> If I have a class representing iterators, then under
> certain circumstances:
Is there anyway you can describe a bit more these certain circumstances
to determine whether this is really a bug in your code or in the gcc? It
is really suspicious that this is working in some instances and not in
others...
Thanks,
Gokhan
>
> const C::const_iterator start = my_list.begin();
> C::const_iterator iter = start;
>
> will result in no constructor being called for iter,
> Whereas:
>
> const C::const_iterator start = my_list.begin();
> C::const_iterator iter;
> iter = start;
>
> results in the correct code. Also:
>
> const C::const_iterator start = my_list.begin();
> C::const_iterator iter(start);
>