Subject: g++-3.3 report internal error even on simplest program Package: g++-3.3 Version: 1:3.3.4-2 Severity: serious Justification: unkown
*** Please type your report below this line *** Hi, I found g++-3.3 can't work, even on the simplest program `hello world`.
The source is:
//test.cpp #include <iostream>
int main()
{
std::cout << "hello" << std::endl;
return 0;
}
When I use g++ to compile it, g++ report internal error:
$ g++ test.cpp -o test
In file included from /usr/include/c++/3.3/i486-linux/bits/c++locale.h:42, from /usr/include/c++/3.3/iosfwd:46, from /usr/include/c++/3.3/ios:44, from /usr/include/c++/3.3/ostream:45, from /usr/include/c++/3.3/iostream:45, from test.cpp:1: /usr/include/langinfo.h:280: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. For Debian GNU/Linux specific bug reporting instructions, see <URL:file:///usr/share/doc/gcc-3.3/README.Bugs>.
Since this program is simple enough, I think it should be a g++ bug.
BTW: I found this problem when re-make one of my program written in C++.
-- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.6 Locale: LANG=C, LC_CTYPE=zh_CN.GBK
Versions of packages g++-3.3 depends on:
ii gcc-3.3 1:3.3.4-2 The GNU C compiler
ii gcc-3.3-base 1:3.3.4-2 The GNU Compiler Collection (base
ii libc6 2.3.2.ds1-13 GNU C Library: Shared libraries an
ii libstdc++5-3.3-dev 1:3.3.4-2 The GNU Standard C++ Library v3 (d
-- no debconf information
-- Hongzheng Wang Department of Electronic Engineering Tsinghua University Beijing 100084, China Tel: (+86 10) 6278 2690