This is the mail archive of the gcc-bugs@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]

libio problems with egcs i86 linux 970917



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



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