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-template8.C
blob
7b2b9c7555bd4f79c5e5ddb73e7e8e33655ddfd1
1
// PR c++/63283
2
// { dg-do compile { target c++11 } }
3
4
constexpr int array_length(int (&array)[3]) { return 3; }
5
int a[] = { 1, 2, 3 };
6
template <typename T> int f() {
7
struct { int e[array_length(a)]; } t;
8
return sizeof(t);
9
}
10
int main() { f<void>(); }