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]
Other format: [Raw text]

[Bug c++/16347] Some cases of calling constructor with temporary object still not recognised properly


------- Additional Comments From matthew_bugzilla at datadeliverance dot com  2004-07-05 06:03 -------
(In reply to comment #1)
>  B b(A(i));   // This doesn't
> means a function which returns the type B and takes A as an agrument,
> So this is not a bug, there has been a couple of dups like this before.

I can see that B b(A) means that, but surely B b(A(i)) can't be a function 
declaration - what does the (i) mean in that case?  And why does it correctly 
interpret B b(A(1)) as instantiating a B?

Thanks

             -Matthew

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16347


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