ICE 373
Theodore Papadopoulo
Theodore.Papadopoulo@sophia.inria.fr
Tue Sep 22 03:03:00 GMT 1998
The following buggy code cause an ICE in both egcs1.1 and
gcc version egcs-2.92.04 19980914.
namespace A {
namespace B {
template <class T1,class T2>
class B {
static const unsigned count = 0;
template <class ForwardIter>
void SetError(ForwardIter it,const T1& p1,const T2& p2) const { }
};
template <>
const unsigned B<int,int>::count = 2;
}
};
int
main()
{
unsigned kk = A::B<int,int>::count;
}
mururoa->eg++ Bug1.C
Bug1.C: In instantiation of `::A::B::::A::B::B<int,int>':
Bug1.C:13: instantiated from here
Bug1.C:13: warning: all member functions in class `::A::B::::A::B::B<int,int>' are private
Bug1.C: In function `int main()':
Bug1.C:20: Internal compiler error 373.
Bug1.C:20: Please submit a full bug report to `egcs-bugs@cygnus.com'.
--------------------------------------------------------------------
Theodore Papadopoulo
Email: Theodore.Papadopoulo@sophia.inria.fr Tel: (33) 04 92 38 76 01
--------------------------------------------------------------------
More information about the Gcc-bugs
mailing list