This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR c++/36408
- From: Jason Merrill <jason at redhat dot com>
- To: Dodji Seketeli <dseketel at redhat dot com>, gcc-patches List <gcc-patches at gcc dot gnu dot org>, Mark Mitchell <mark at codesourcery dot com>
- Date: Sun, 03 Aug 2008 17:24:12 -0400
- Subject: Re: [PATCH] Fix PR c++/36408
- References: <48934AB7.40106@redhat.com> <48936CB4.101@redhat.com> <4894846F.3060703@redhat.com> <48951F06.2000003@redhat.com> <4895829F.2080009@redhat.com> <48961D33.4050508@redhat.com>
Jason Merrill wrote:
The problem is that tsubsting an empty STATEMENT_LIST returns NULL_TREE,
when it ought to return void_zero_node.
Actually, that isn't it either. The problem is that we're tsubsting the
STMT_EXPR into a STATEMENT_LIST too early, in fold_non_dependent_expr.
I suspect that this may break other uses of statement-expressions as
initializers in templates, too.
Jason