This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ Patch] Add IS_DIRECT_INITIALIZER?
- From: Jason Merrill <jason at redhat dot com>
- To: Paolo Carlini <paolo dot carlini at oracle dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 14 May 2014 14:34:06 -0400
- Subject: Re: [C++ Patch] Add IS_DIRECT_INITIALIZER?
- Authentication-results: sourceware.org; auth=none
- References: <5373A0C5 dot 90303 at oracle dot com>
The name suggests that it would be true for any direct initialization,
which is wrong; see TARGET_EXPR_DIRECT_INIT_P (and the similarly wrongly
named DIRECT_INIT_EXPR_P).
Call your macro DIRECT_LIST_INIT_P and it's OK.
Jason