This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/13894] New: Incorrect partial template specialization


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]