[Bug c++/13894] New: Incorrect partial template specialization
a dot darovskikh at compassplus dot ru
gcc-bugzilla@gcc.gnu.org
Wed Jan 28 11:33:00 GMT 2004
Given program compiles and well works on borland and MSVC,
but fails to compile on GCC
class A {
public:
enum { a1=0x00,
a2=0x01,
a3=0x02,
a4=0x03};
};
template <class T, int O> class B: public A {
public:
};
template <class T> class C : public B<T, A::a1> {
public:
#ifdef BUG
C() :B<T,A::a1>() {}
#endif
};
main()
{
C<int> a;
}
--
Summary: Incorrect partial template specialization
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: a dot darovskikh at compassplus dot ru
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: Linux debian woody/testing
GCC target triplet: 3.3.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13894
More information about the Gcc-bugs
mailing list