This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16347] Some cases of calling constructor with temporary object still not recognised properly
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Jul 2004 21:30:18 -0000
- Subject: [Bug c++/16347] Some cases of calling constructor with temporary object still not recognised properly
- References: <20040703124146.16347.matthew_bugzilla@datadeliverance.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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