Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.old-deja/g++.jason/template15.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 run } // PRMS Id: 2139 // Bug: g++ tries to instantiate the template with types on the function // obstack and fails. template<class T> class X { public: X(int) { } T x; }; class A { }; int main() { int i; X<int> xi(i); X<double> xd(i); X<int (*)(int, void *)> fp0(i); X<int (*)(int, char, double)> fp1(i); X<int (*)(int, double**, void *)> fp2(i); X<int (A::*)()> mp0 (i); X<int A::*> mp1 (i); }