1// { dg-do assemble } 2// 3// Copyright (C) 2001 Free Software Foundation, Inc. 4// Contributed by Nathan Sidwell 26 April 2001 <nathan@codesourcery.com> 5// Origin: schmid@snake.iap.physik.tu-darmstadt.de 6 7// Bug 2368. When checking shadowed catchers, we didn't ignore 8// template type parms etc, leading to an ICE 9 10template<class CatchType1, class CatchType2> 11void call(int& a) 12{ 13 try 14 { 15 16 } 17 catch (CatchType1&) 18 { 19 20 } 21 catch (CatchType2&) 22 { 23 24 } 25} 26 27