This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/25465] New: Failure to apply constructor
- From: "igodard at pacbell dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Dec 2005 20:42:55 -0000
- Subject: [Bug c++/25465] New: Failure to apply constructor
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The code passes the result of one function to a return statement in another,
where the returned type has a constructor from the argument type. I'm expecting
that the constructor will be invoked silently, but get a diagnostic. This
appears to be a regression; the code worked in 3.4.0. A simple version of the
logic gets no diagnostic, so here's the whole thing.
--
Summary: Failure to apply constructor
Product: gcc
Version: 3.4.4
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: igodard at pacbell dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25465