This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13894] New: Incorrect partial template specialization
- From: "a dot darovskikh at compassplus dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Jan 2004 11:33:08 -0000
- Subject: [Bug c++/13894] New: Incorrect partial template specialization
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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