diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/template8.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/template8.C | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/template8.C b/gcc/testsuite/g++.old-deja/g++.jason/template8.C new file mode 100644 index 00000000000..586fb61a02e --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/template8.C @@ -0,0 +1,10 @@ +// PRMS Id: 4827 +// Build don't link: + +class A; +template <class T> int f (const T&, const A *); + +int g (const int& a) +{ + return f (a, (A *)0); // gets bogus error - failed unification +} |