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
* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-defarg2.C
blob
515576e1f6244c0f5258a335c60be3da4bc2971b
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
C c;
29
A a (c);
30
31
A
32
B::foo ()
33
{
34
try
35
{
36
baz ("foo");
37
}
38
catch (...)
39
{
40
}
41
42
return a;
43
}
44
45
A
46
B::bar ()
47
{
48
baz ("bar");
49
return a;
50
}