Searched refs:template (Results 1 - 25 of 3533) sorted by relevance

1234567891011>>

/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/g++.dg/template/
H A Dinstantiate2.C5 // Default function argument and template instantiation.
7 template <int dim> void f (int=0) {};
8 template void f<1> (); // { dg-error "not match" }
H A Dunify2.C3 template<int I> void f1 (char [][I+1]) {}
4 template<int I> void f2 (char [][I+0]) {}
5 template<int I> void f3 (char [][I]) {}
6 template<int I> void f4 (char [][I-0]) {}
7 template<int I> void f5 (char [][I-1]) {}
9 template void f1 (char [][6]); // { dg-error "does not match" }
10 template void f2 (char [][6]); // { dg-error "does not match" }
11 template void f3 (char [][6]);
12 template void f4 (char [][6]); // { dg-error "does not match" }
13 template voi
[all...]
H A Dspec8.C3 // Specialization of member class template.
5 template<class T1> struct A
7 template<class T2> struct B {};
10 template <> template <> struct A<int>::B<int> {};
11 template <> template <class U> struct A<int>::B {}; // { dg-error "specialization" }
H A Dnontype1.C4 template<unsigned> struct A {};
5 template<typename T> struct B { A<sizeof(+int())> a; };
H A Dspec4.C5 // Default function argument and template specialization.
8 template <int dim> void f(int=0);
11 template <> void X::f<1> () {} // { dg-error "(not match|syntax error)" }
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.oliva/
H A Dtemplate6.C8 template <typename> struct foo {};
9 template <> void foo(); // ERROR - bad specialization
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.pt/
H A Dspec31.C0 template <> struct A {}; // ERROR - not a specialization
2 template <> void f (); // ERROR - not a specialization
H A Dexplicit34.C3 template <class T>
6 template <>
9 template <>
H A Denum5.C3 template <>
4 enum E {e}; // ERROR - template declaration of enum
H A Dexplicit69.C2 template class x {}; // ERROR - not a template instantiation
H A Dinstantiate1.C3 template <class T>
6 template void f<int>(int);
7 template void f<>(long);
9 template <class T>
14 template <class U>
19 template S<char>;
20 template void S<int>::bar(int);
21 template void S<double>::baz<short>(short);
22 template void S<long>::baz<>(char);
H A Dttp46.C3 template <template<class> class TT> void f() {}
4 template <template<class,class> class TT> void f() {}
H A Dcrash50.C4 template <class T>
10 template void f<int>();
H A Dcrash51.C7 template <class T>
13 template void f<int>();
H A Dcrash63.C6 // Bug 1585. We ICEd on a template template parm with no parms.
8 template<template<class> class C> class B;
9 template<template<> class C> class D; // ERROR - parse error
H A Dcrash65.C6 // Bug 1506. We ICE'd on a struct definition inside a template parms.
11 template<class T =
12 struct W {}; // ERROR - inside template parms
H A Dctor1.C3 template <typename _CharT>
9 template <>
H A Dexplicit76.C8 template <class T> void bar();
11 template void foo::bar<void>(); // gets bogus error - ICE - XFAIL *-*-*
H A Dnttp1.C1 // Test for nested template template parameter feature
3 template <template<template <class> class> class TTT> struct C
8 template <template<template <class> class> class TTT> int C<TTT>::f()
13 template <template <clas
[all...]
H A Dredecl1.C3 template <class T>
6 template <class T, class U>
7 struct S1 {}; // ERROR - used 1 template parameter
9 template <class T = int> // ERROR - original def of default
12 template <class T = int>
15 template <class T> // ERROR - template parameter
18 template <int I>
21 template <template <clas
[all...]
H A Dswitch1.C4 template <class T>
13 template void f<int>();
H A Dcrash13.C3 template <class T> struct A {};
4 template <class T> struct A<T>; // ERROR - does not specialize args
5 template <class T> const struct A; // ERROR - parse error
6 template <class T> template A<int>; // ERROR - .*
H A Dexplicit12.C4 template <class U>
7 template <class T>
12 template <>
13 template <>
19 s.template foo<int>(3.0);
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.robertl/
H A Deb92.C0 template<int N> f<0>(){} // ERROR - invalid code
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.other/
H A Dlinkage4.C6 template <int (*)(const char*)>
10 // using it as a non-type template argument, and expecting an error.
11 template void f<strlen>(); // ERROR - no matching template

Completed in 197 milliseconds

1234567891011>>