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
Merged revisions 208012,208018-208019,208021,208023-208030,208033,208037,208040-20804...
[official-gcc.git]
/
main
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-defarg2.C
blob
f1ca05fe9ec6a4b42449d96f2b398624dddb11ce
1
// PR c++/46368
2
// { dg-do compile { target c++11 } }
3
4
class A;
5
6
class B
7
{
8
A foo ();
9
A bar ();
10
};
11
12
class C
13
{
14
};
15
16
struct D
17
{
18
D (C);
19
};
20
21
struct A : D
22
{
23
A (const C & n) : D (n) {}
24
};
25
26
A baz (const char *, A = C ());
27
28
A
29
B::foo ()
30
{
31
try
32
{
33
baz ("foo");
34
}
35
catch (...)
36
{
37
}
38
}
39
40
A
41
B::bar ()
42
{
43
baz ("bar");
44
}