This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH for libstdc++/48760 (list-initialization of complex)
- From: Lawrence Crowl <crowl at google dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: gcc-patches List <gcc-patches at gcc dot gnu dot org>, Paolo Carlini <paolo dot carlini at oracle dot com>, Gabriel Dos Reis <gdr at cs dot tamu dot edu>
- Date: Wed, 27 Apr 2011 20:51:08 -0700
- Subject: Re: C++ PATCH for libstdc++/48760 (list-initialization of complex)
- References: <4DB8C483.8060108@redhat.com> <4DB8CAA2.6000402@redhat.com>
On 4/27/11, Jason Merrill <jason@redhat.com> wrote:
> On 04/27/2011 09:36 PM, Jason Merrill wrote:
>> A a = { 1, 2 };
>>
>> a.c is initialized to 1+0i rather than 1+2i as it has been previously,
>
> This should have said "a.c is initialized to 1+0i, as it has been
> previously, rather than 1+2i, as it would be if it were an aggregate".
This looks right to me. It's more in line with C99.
--
Lawrence Crowl