[Bug c++/26986] New: Segfault with iostream code
falk at debian dot org
gcc-bugzilla@gcc.gnu.org
Sun Apr 2 11:37:00 GMT 2006
4.2.0 20060401
I'm seeing lots of segfaults in iostream using code. This is a test case:
template<typename CharT>
struct basic_ios {
virtual ~basic_ios ();
};
template<typename CharT>
struct basic_streambuf {
friend struct basic_ios<CharT>;
};
template<typename CharT>
struct basic_ostream : virtual public basic_ios<CharT> {
explicit basic_ostream (int) { }
};
namespace {
struct null_streambuf : public basic_streambuf<char> { };
}
basic_ostream<char> null_ostream(0);
No problem with 4.1.0 or other earlier versions.
% g++ -c test.cc
test.cc: In constructor 'basic_ios<char>::basic_ios()':
test.cc:2: internal compiler error: Segmentation fault
Please submit a full bug report, [...]
--
Summary: Segfault with iostream code
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: falk at debian dot org
GCC build triplet: alphaev68-unknown-linux-gnu
GCC host triplet: alphaev68-unknown-linux-gnu
GCC target triplet: alphaev68-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26986
More information about the Gcc-bugs
mailing list