[Bug c++/11770] segv
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Tue Aug 5 19:44:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11770
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From bangerth at dealii dot org 2003-08-05 19:44 -------
Confirmed. Here's a reduced testcase:
------------------------------
template<typename T>
struct B {
typedef B<T> S;
};
template<typename T>
struct D : B<T> {
friend class S;
D(T v) : B(v) {}
};
------------------------------------
This ICEs every gcc version up to and including 3.3:
g/x> /home/bangerth/bin/gcc-3.3-pre/bin/c++ -c x.cc
x.cc:8: warning: `class S' declares a new type at namespace scope
x.cc:8: warning: names from dependent base classes are not visible to
unqualified name lookup - to refer to the inherited type, say `class D::S'
x.cc:9: 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.
However, this seems already fixed in mainline.
W.
More information about the Gcc-bugs
mailing list