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: libstdc++/9828: Regression: Segmentation fault in num_put::put


On Thu, Apr 10, 2003 at 08:42:32PM -0500, Benjamin Kosnik wrote:
> 
> >> > >__locale_cache<num_put<char> >& __lc = use_cache<num_put<char> >
> >> > 
> >> > Like this.
> >
> >I don't see any need to have separate caches per facet.  Indexing it
> >by character type seems simpler, faster, and sufficient.
> 
> True.
> 
> >I don't think that's necessary.  Unless I'm severely mistaken, all 
> >uses of locale::_Impl that care about its size are in non-template
> >code in the library proper. 
> 
> Check globals.cc. I'm pretty sure that the "C" locale::Impl data was exported
> in the 3.2.x ABI (it no longer is, FYI.). Thus, I think what Jerry
> proposed is reasonable, if the other way is not possible.

OK, but if nothing outside the library depends on its size, then
adding members at the end should be OK.  Right?

Nathan Myers
ncm-nospam at cantrip dot org


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