OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-dev/] [fsf-gcc-snapshot-1-mar-12/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [dfp/] [base.C] - Rev 783

Compare with Previous | Blame | View Log

// PR c++/50207
// { dg-do compile }

namespace std
{
  namespace decimal
  {
    template <class _Fmt> struct _FmtTraits;
    class decimal32;
    template <> struct _FmtTraits <decimal32>
    {
      static const long _NumBytes = 4UL;
    };
    template <class _Tr> class _DecBase
    {
      unsigned char _Bytes[_Tr::_NumBytes];
    };
    class decimal32 : public _DecBase <_FmtTraits <decimal32> > // { dg-error "has base" }
    {
      decimal32 () { }
    };
  }
}

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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