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
* call.c (implicit_conversion): Handle conversion from
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist15.C
1
// { dg-options "-std=c++0x" }
2
3
#include <vector>
4
#include <typeinfo>
5
6
using namespace std;
7
8
template< typename ... ArgTypes >
9
void test( ArgTypes ... args ) {
10
vector<type_info*> x = { &typeid(ArgTypes)... }; // { dg-error "" }
11
}
12
13
int main()
14
{
15
test( 1, 3.14f, 2.78 );
16
return 0;
17
}