This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11770] segv
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Aug 2003 19:44:03 -0000
- Subject: [Bug c++/11770] segv
- References: <20030802074217.11770.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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.