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 for libstdc++/48760 (list-initialization of complex)


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


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