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
PR c++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
variadic88.C
blob
b96c7198d65eec8b63637ba3def35cfd1d7abe48
1
// { dg-do compile { target c++11 } }
2
3
template<template<typename...> class TT>
4
TT<int, float, double> foo(TT<int, float>)
5
{
6
return TT<int, float, double>();
7
}
8
9
template<typename T>
10
int& foo(T)
11
{
12
static int i = 0; return i;
13
}
14
15
template<typename T, typename U>
16
struct pair {};
17
18
void bar()
19
{
20
pair<int, float> p;
21
int& i = foo(p);
22
}
23