This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH to allow more deduction of std::initializer_list
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 24 Sep 2009 10:26:50 +0200
- Subject: Re: C++ PATCH to allow more deduction of std::initializer_list
- References: <4AB3FA47.2040904@redhat.com> <4AB3FA84.9000408@redhat.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Fri, Sep 18, 2009 at 05:24:20PM -0400, Jason Merrill wrote:
> Oops, wrong patch, let's try that again:
> commit 99ddd5611e5e43a200e23415dfa2bb93c20cda42
> Author: Jason Merrill <jason@redhat.com>
> Date: Thu Sep 10 17:06:32 2009 -0400
>
> * c.opt: Add -fno-deduce-init-list.
> * pt.c (get_pattern_parm): New.
> (listify): Split out from...
> (listify_autos): ...here.
> (unify): Deduce std::initializer_list for T.
> * call.c (build_over_call): Warn about it.
The 4.4 version of the patch you've commited has an extra:
static bool warned = false;
line in it, the warned var is never used though.
Can you please remove it? Or did you mean to e.g.
print the
(you can disable this with -fno-deduce-init-list)
hint only the first time this is encountered?
Jakub