Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.eh/crash6.C

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