repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-sizeof1.C
blob
d9a032b392f11e49af91436479304e2bbf85dd5c
1
// PR c++/64603
2
// { dg-do compile { target c++11 } }
3
4
template <int i> constexpr int find_longest_name()
5
{
6
return sizeof("Main") - 1;
7
}
8
9
template <int i, int l = find_longest_name<i>()> void create_all_loggers()
10
{}
11
12
int main()
13
{
14
create_all_loggers<1>();
15
}