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: PR c++/25811


2010/4/5 Fabien CHÊNE <fabien.chene@gmail.com>:
> 2010/3/31 Fabien CHÊNE <fabien.chene@gmail.com>:
>> 2010/3/31 Manuel López-Ibáñez <lopezibanez@gmail.com>:
>>> So what happens when there is more than one? how would the user know
>>> which member is uninitialized?
>>
>> The diagnostic is approximately the same than for:
>>
>> struct A { int const i; };
>> void f() { A a; }
>>
>> I admit than we can do better for both cases.
>>
>>> More importantly, how would the user know where this member is declared?
>>> The error could provide a bit more information to the user.
>>
>> I will try to improve that.
>
> I have improved diagnostics in the attached patch.
> regested on x86_64-unknown-linux-gnu. OK for 4.6 ?

Updated patch with a correct ChangeLog entry and an updated
copyright's date in cp-tree.h

--
Fab

Attachment: pr25811.patch
Description: Binary data


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