This is the mail archive of the gcc-patches@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] |
The patch tries to patch cp/tree.c:build_aggr_init_expr(). build_aggr_init_expr() wraps a ctor-calling CALL_EXPR tree node with an AGGR_INIT_EXPR tree node, whose expression type is always VOID_TYPE. When it determines whether the routine being called is a ctor or not, it only looks into simple cases, but not the case of overloaded ctors in a tree of COMPONENT_REF (INDIRECT_REF (something, BASELINK (OVERLOAD))). This patch expands the is_ctor determining logic.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |