summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.oliva/template7.C
blob: 3bcff56ae0f796f2b86462392f5320c987e60893 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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;