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

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Mon Jul 5 21:30:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list