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 bangerth at dealii dot org  2004-07-05 21:30 -------
This
  B b(A(i))
is interpreted as if you wrote
  B b(A i)
which is the declaration of a function 'b' returning a 'B', and taking a
variable 'i' of type 'A' as arguments.

Yes, that sounds odd, but that's what the grammar seems to say.

W.

-- 


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]