view gcc/testsuite/g++.old-deja/g++.jason/tempparse.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

// { dg-do assemble  }
/*
   PRMS Id: 3631
   Bug is: g++ mangles template class names in a way that it won't accept,
     and then tries to feed them to itself.
*/

template<class T>
struct A {
  A();
};

template<class T>
struct B : A<T> {
  B();
};				// { dg-bogus "" } B<C<char>>

template<class T>
struct C {
  C();
};

template<class T>
struct D {
  D();
  B<C<T> > p_f;
};

typedef D<char> Dummy;