OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c++/45114 - Support C++11 alias-declaration
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist35.C
1
// PR c++/41510
2
// { dg-options "-std=c++0x" }
3
4
struct B
5
{
6
B(int, int);
7
};
8
struct A
9
{
10
A(int, int);
11
A(const B&);
12
};
13
14
void f()
15
{
16
A a = { 1, 2 };
17
};
18
19
template <class T> void g()
20
{
21
A a = { 1, 2 };
22
};
23
24
template void g<int>();