This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: bogus error on constructor call with gcc 2.95.2
On Oct 16, 2000, Martin Sebor <sebor@roguewave.com> wrote:
> Alexandre Oliva wrote:
>>
>> On Oct 16, 2000, "E. Jay Berkenbilt" <ejb@ql.org> wrote:
>>
>> > B(A(0, 1));
>>
>> This is not what you think it is. In C++, this is the same as:
>>
>> B A(0, 1);
>>
>> i.e., a declaration and definition of a variable named A, of type B,
>> initialized using a B's constructor that takes two arguments that can
>> be implicitly converted from `0' and `1', respectively.
> I respectfully disagree.
Thanks for setting me straight. You're certainly right. Sorry about
the stupidity leak :-)
I guess this falls in the category of the known parser bugs in g++,
then :-(
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me