summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/dfp/base.C
blob: 3e5dc50bafe320ceec7967f7ab5a37836f0da5d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// 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 () { }
    };
  }
}