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