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]

Re: [PATCH] PR c++/36408


On Fri, Nov 27, 2009 at 11:53 PM, Dodji Seketeli <dodji@redhat.com> wrote:
> On Fri, Nov 27, 2009 at 08:39:21PM -0500, Jason Merrill wrote:
>> Seems like this belongs in the tsubst_copy_and_build STMT_EXPR handling.
>
> The patch below has been updated and tested accordingly.
>
> Thanks.
>
> ? ? ? ?Dodji
>
> commit c7d13b90ad829791ebdf909bfeaa0b7434281845
> Author: Dodji Seketeli <dodji@redhat.com>
> Date: ? Fri Nov 27 21:01:29 2009 +0100
>
> ? ?Fix PR c++/36408
>
> ? ?gcc/cp/ChangeLog:
>
> ? ? ? ?PR c++/36408
> ? ? ? ?* cp-tree.h (empty_expr_stmt_p): Declare ...
> ? ? ? ?* semantics.c (empty_expr_stmt_p): ... this.
> ? ? ? ?* pt.c (tsubst_copy_and_build) <STMT_EXPR>: Use it.
>
> ? ?gcc/testsuite/ChangeLog:
> ? ? ? ?PR c++/36408
> ? ? ? ?* g++.dg/template/stmtexpr2.C: New test.
>

The new testcase compiles without any error messages and failed.


H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]