]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.old-deja/g++.pt/conv3.C
pt.c (check_nontype_parm): New function.
[gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / conv3.C
1 // Build don't link:
2 // Origin: Chris Heath <cheath@math.lsa.umich.edu>
3
4 struct A {
5 template<typename T> explicit A(T t) {}
6 };
7
8 void f(A a) {}
9
10 int main() {f(1);} // ERROR - no conversion from int to A.
This page took 0.035377 seconds and 5 git commands to generate.