1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
// Copyright (C) 2005 Free Software Foundation, Inc. // Contributed by Nathan Sidwell 2 Jun 2005 <nathan@codesourcery.com> // PR 21280 // Origin: Jens Maurer <jens.maurer@gmx.net> #include "interface2.h" struct A { A() { } virtual ~A() { } }; int main() { A a; C<A> c(a); }