This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
Re: `cout << setw(...) << "..."' gives segfault
- To: Rich Churcher <churcher at ihug dot com dot au>
- Subject: Re: `cout << setw(...) << "..."' gives segfault
- From: Petter Urkedal <petter dot urkedal at matfys dot lth dot se>
- Date: Tue, 17 Oct 2000 11:29:27 +0200
- Cc: Petter Urkedal <petter dot urkedal at matfys dot lth dot se>, libstdc++ at sources dot redhat dot com
- References: <20001016174110.A3631@katsumoto> <m34s2cnodu.fsf@ihug.com.au>
Is this related to the `-{gc,f}sections' problem? At least, a
workaround is to `#include <bits/ostream.tcc>', as in
#include <iostream>
#include <iomanip>
#include <bits/ostream.tcc>
int
main()
{
std::cout << std::setw(14) << "EW" << std::endl;
return 0;
}
On Tue, 17 Oct 2000 05:21:49 Rich Churcher wrote:
>
> > [---]$ uname -a
> > Linux nilsson 2.2.16 #1 Wed Aug 2 20:03:33 GMT 2000 i686 unknown
>
> Could this be specific to RedHat 7.0? I've never noticed this issue
> before, and only upgraded in the past few days.
(Hmm, it's mostly specific to SuSE 7.0. And `unknown', though it
dosn't say so in the dictionary, it means Athlon, really.)
Cheers,
-petter.