OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.ns/] [template6.C] - Diff between revs 305 and 384

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 305 Rev 384
// { dg-do assemble  }
// { dg-do assemble  }
//reported by Theodore Papadopoulo (Theodore.Papadopoulo@sophia.inria.fr)
//reported by Theodore Papadopoulo (Theodore.Papadopoulo@sophia.inria.fr)
namespace A {
namespace A {
   namespace B {
   namespace B {
      template 
      template 
         struct B {
         struct B {
               static const unsigned count = 0;
               static const unsigned count = 0;
               template 
               template 
               void SetError(ForwardIter it,const T1& p1,const T2& p2) const { }
               void SetError(ForwardIter it,const T1& p1,const T2& p2) const { }
         };
         };
      template <>
      template <>
         const unsigned B::count = 2; // { dg-error "" } duplicate init
         const unsigned B::count = 2; // { dg-error "" } duplicate init
   }
   }
}
}
int
int
main()
main()
{
{
   unsigned kk =  A::B::count; // { dg-error "" } not a template: syntax error
   unsigned kk =  A::B::count; // { dg-error "" } not a template: syntax error
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.