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: [C++ PATCH] Fix 11945


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


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