[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
jakub at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Dec 19 16:46:00 GMT 2008
------- 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
More information about the Gcc-bugs
mailing list