summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/dtor8.C
blob: a96b7982f5d489bab08d54f5e5f817b2d3fd81de (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++/43648

namespace dealii
{
  namespace FEValuesViews
  {
    template <int dim, int spacedim> struct Scalar {};
  }

  template <int dim, int spacedim>
  struct X
  {
      FEValuesViews::Scalar<dim,spacedim> scalars[dim*spacedim];

      void f()
        {
          typedef dealii::FEValuesViews::Scalar<dim,spacedim> ScalarView;
          scalars[0].ScalarView::~ScalarView ();
        }
  };

  template struct X<2,2>;
}