summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.oliva/template7.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.oliva/template7.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.oliva/template7.C14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.oliva/template7.C b/gcc/testsuite/g++.old-deja/g++.oliva/template7.C
new file mode 100644
index 000000000..3bcff56ae
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.oliva/template7.C
@@ -0,0 +1,14 @@
+// { dg-do assemble }
+
+// Copyright (C) 1999, 2000 Free Software Foundation
+
+// by Alexandre Oliva <oliva@lsd.ic.unicamp.br>
+// simplified from bug report by Paul Burchard <burchard@pobox.com>
+
+template<class> struct A {};
+template<template<class> class T> struct B {
+ B() {
+ T<B>(); // { dg-bogus "" } conversion from int to non-scalar
+ }
+};
+B<A> foo;