This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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: [PATCH] Fix PR libstdc++/19510: Uninitialized variable in someiterators


Paul Schlie wrote:
Mark Mitchell wrote:
I'd be OK with having the pointers to be set to zero in a debugging mode,
although I should point out that people have rejected adding this kind of
feature to the compiler, on the grounds that it encourages people to write
unportable code that depends on the zero-initialization.


Especially if any non-standard initialization's were accompanied with
corresponding warnings if reasonably possible?

Sure.


--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304


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