Re: C++ PATCH for c++/51747 (list-initialization from same type)

2015-06-09 Thread Jason Merrill
On 05/07/2015 12:45 PM, Jason Merrill wrote: We also need to adjust digest_init_r. This was only needed because we weren't calling reshape_init. Now that Paolo has fixed that, this can become an assert. commit 8d2793c42fc3de4a0b665f4c2ff2a2946ae0beda Author: Jason Merrill ja...@redhat.com

Re: C++ PATCH for c++/51747 (list-initialization from same type)

2015-05-07 Thread Jason Merrill
We also need to adjust digest_init_r. Tested x86_64-pc-linux-gnu, applying to trunk and 5. commit 23cbda06982fbaf061719dff124ae90c3b033d7e Author: Jason Merrill ja...@redhat.com Date: Wed May 6 17:11:54 2015 -0500 DR 1467 PR c++/51747 * typeck2.c (digest_init_r): Fix single

Re: C++ PATCH for c++/51747 (list-initialization from same type)

2014-04-16 Thread Jason Merrill
OK. Jason

Re: C++ PATCH for c++/51747 (list-initialization from same type)

2014-04-15 Thread Jason Merrill
On 04/14/2014 06:02 PM, Marc Glisse wrote: shouldn't the same also apply if VECTOR_TYPE_P (type), not just for CLASS_TYPE_P (type)? Sure. Do you want to make that change? Jason

Re: C++ PATCH for c++/51747 (list-initialization from same type)

2014-04-15 Thread Marc Glisse
On Tue, 15 Apr 2014, Jason Merrill wrote: On 04/14/2014 06:02 PM, Marc Glisse wrote: shouldn't the same also apply if VECTOR_TYPE_P (type), not just for CLASS_TYPE_P (type)? Sure. Do you want to make that change? I can add || VECTOR_TYPE_P (type), yes, but I thought you might have ideas

Re: C++ PATCH for c++/51747 (list-initialization from same type)

2014-04-15 Thread Jason Merrill
On 04/15/2014 10:13 AM, Marc Glisse wrote: I can add || VECTOR_TYPE_P (type), yes, but I thought you might have ideas about other cases that might have been forgotten, maybe arrays or something (I didn't have time to test any further), and thus on what the right test should be. If it is just

Re: C++ PATCH for c++/51747 (list-initialization from same type)

2014-04-15 Thread Marc Glisse
On Tue, 15 Apr 2014, Jason Merrill wrote: It's just vectors, because they're an extension; the patch I checked in covered the standard language. Like this? (regtested on x86_64-linux-gnu) 2014-04-16 Marc Glisse marc.gli...@inria.fr gcc/cp/ * decl.c (reshape_init_r): Handle a

Re: C++ PATCH for c++/51747 (list-initialization from same type)

2014-04-14 Thread Marc Glisse
On Fri, 11 Apr 2014, Jason Merrill wrote: Recent changes to the C++ standard have allowed the use of list-initialization with a single initializer of the same type as the target; this patch updates reshape_init accordingly. Tested x86_64-pc-linux-gnu, applying to trunk. Hello, shouldn't

C++ PATCH for c++/51747 (list-initialization from same type)

2014-04-11 Thread Jason Merrill
Recent changes to the C++ standard have allowed the use of list-initialization with a single initializer of the same type as the target; this patch updates reshape_init accordingly. Tested x86_64-pc-linux-gnu, applying to trunk. commit 0bb6493b9f08021d00a636fe5b4ea777bd4cbc13 Author: Jason