repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix emission of exception dispatch (PR middle-end/82154).
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr82154.C
blob
f4e1c3ea139ca74d7a61736da4b631986042f9de
1
// { dg-do compile }
2
// { dg-additional-options "-Wno-deprecated" }
3
4
namespace a {
5
int b;
6
class c
7
{
8
};
9
}
10
class g
11
{
12
public:
13
g ();
14
};
15
using a::b;
16
class d
17
{
18
public:
19
d ();
20
void e ();
21
};
22
class f
23
{
24
d
25
i ()
26
{
27
static d j;
28
}
29
int *k () throw (a::c);
30
};
31
32
33
int *f::k () throw (a::c)
34
{
35
static g h;
36
i ();
37
int l = 2;
38
while (l)
39
{
40
--l;
41
try
42
{
43
operator new (b);
44
}
45
catch (a::c)
46
{
47
}
48
}
49
i ().e ();
50
}