This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] Fix 11945
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Nathan Sidwell <nathan at codesourcery dot com>
- Cc: Mark Mitchell <mitchell at codesourcery dot com>, gcc-patches at gcc dot gnu dot org
- Date: 19 Aug 2003 10:55:09 -0700
- Subject: Re: [C++ PATCH] Fix 11945
- Organization: CodeSourcery, LLC
- References: <3F424FB2.5070105@codesourcery.com>
On Tue, 2003-08-19 at 09:26, Nathan Sidwell wrote:
> Hi,
> this fixes 11945, were we were inconsistent about warning of sub
> expressions with no effect. We'd warn on the template instantiations,
> but not on the template definition itself, even though the
> sub-expression was non-dependent. My recent patch to hold the
> non-dependent expr as a NON_DEPENDENT_EXPR's operand propagates
> TREE_SIDE_EFFECTS, and makes detection feasible.
>
> booted & tested on i686-pc-linux-gnu, ok?
Yes, thanks.
--
Mark Mitchell <mark@codesourcery.com>
CodeSourcery, LLC