This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/38577] [4.4 Regression] ICE: tree check: expected call_expr, have compound_expr in build_new_method_call, at cp/call.c:6000
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Dec 2008 16:44:53 -0000
- Subject: [Bug c++/38577] [4.4 Regression] ICE: tree check: expected call_expr, have compound_expr in build_new_method_call, at cp/call.c:6000
- References: <bug-38577-5606@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from jakub at gcc dot gnu dot org 2008-12-19 16:44 -------
Created an attachment (id=16945)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16945&action=view)
gcc44-pr38577.patch
Patch I'm going to test.
Both the COMPOUND_EXPR and NOP_EXPR are inserted again during instantiation
when build_new_method_call is called again.
Another alternative would be not to create the COMPOUND_EXPR or NOP_EXPR
if (processing_template_decl) at all, but for the destructor cast to void
that would mean the type wouldn't be void during template processing. Before
the PR37540 patch the CALL_EXPR would have void_type_node, which is wrong, but
leaving the type non-void would be IMHO worse.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38577