------- 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

Reply via email to