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] |
Other format: | [Raw text] |
Package: g++-3.0 Version: 1:3.0.4-7 Severity: normal $ g++-3.0 -v Reading specs from /usr/lib/gcc-lib/i386-linux/3.0.4/specs Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,p roto,objc --prefix=/usr --infodir=/share/info --mandir=/share/man --enable-shared --with-gnu-as --with-gnu-ld --with-system-zlib --enable-long-long --enable-nls --without-included-gettext --disable-checking --enable-threads=posix --enable-java-gc=boehm --with-cpp-install-dir=bin --enable-objc-gc i386-linux Thread model: posix gcc version 3.0.4 $ $ cat main.cc /* * main.cc. */ #include <fstream> #include <iostream> #include <iterator> #include <stdexcept> #include <string> using namespace std; int main(void) try { fstream inputFile("main.cc"); if (!inputFile) throw runtime_error("Can not open main.cc"); istream_iterator<string> iter; *++iter == "}" ? iter++ : throw runtime_error("Corrupted input file."); return 0; } catch(const exception &excp) { cerr << excp.what() << '\n'; throw; } $ $ g++-3.0 -Wall main.cc ; printf '\007' main.cc: In function `int main()': main.cc:22: Internal error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions. $ -- System Information Debian Release: 3.0 Architecture: i386 Kernel: Linux rakefet 2.2.20-custom.5 #1 Sun Feb 24 00:29:32 IST 2002 i586 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 Versions of packages g++-3.0 depends on: ii gcc-3.0 1:3.0.4-7 The GNU C compiler. ii gcc-3.0-base 1:3.0.4-7 The GNU Compiler Collection (base ii libc6 2.2.5-4 GNU C Library: Shared libraries an ii libstdc++3-dev 1:3.0.4-7 The GNU stdc++ library version 3 (
Attachment:
main.ii.bz2
Description: main.ii.bz2
Shaul Karl email: shaulka(replace with the at - @ - character)bezeqint.net
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |