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 to allow more deduction of std::initializer_list


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


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