FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.oliva / template7.C
blob16a42d8c6bab746a727f2cd4dfab349571f314da
1 // Build don't link:
3 // Copyright (C) 1999, 2000 Free Software Foundation
5 // by Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6 // simplified from bug report by Paul Burchard <burchard@pobox.com>
8 template<class> struct A {};
9 template<template<class> class T> struct B {
10   B() {
11     T<B>(); // gets bogus error - conversion from int to non-scalar
12   }
14 B<A> foo;