This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
libio problems with egcs i86 linux 970917
- To: egcs-bugs at cygnus dot com
- Subject: libio problems with egcs i86 linux 970917
- From: Finn Arne Gangstad <finnag at guardian dot no>
- Date: Fri, 19 Sep 1997 14:41:28 +0200 (MET DST)
gcc version egcs-2.90.08 970917 (gcc2-970802 experimental)
i686-pc-linux-gnulibc1, libc 5.4.17:
tst2.cc:
---
#include <fstream.h>
#include <stdio.h>
int
main()
{
printf("If you see this, you don't have a problem!\n");
#ifdef EXPOSE_BUG
ifstream a;
#endif
}
---
lucifer:finnag:(540)$ c++ -o -DEXPOSE_BUG tst2 tst2.cc
lucifer:finnag:(541)$ ./tst2
Segmentation fault
lucifer:finnag:(542)$ c++ -o tst2 tst2.cc
lucifer:finnag:(543)$ ./tst2
If you see this, you don't have a problem!
It is interesting to note that it is printf that segfaults, not
"ifstream a;".
- Finn Arne