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++/85553
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist-template1.C
blob
a24e205d71c814768b2542676b0b9247b336c89c
1
// PR c++/70824
2
// { dg-do compile { target c++11 } }
3
4
#include <initializer_list>
5
6
constexpr
7
int
8
max(std::initializer_list<int> __l)
9
{ return *__l.begin(); }
10
11
template <class Src>
12
void
13
a() {
14
const int v = max({1});
15
}