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
/cp
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
constexpr-array5.C
blob
3abdd8490d6107b83a9c46dc2c4defc6005bf045
1
// PR c++/71972
2
// { dg-do compile { target c++14 } }
3
4
typedef int size_t;
5
template <int N> struct S {
6
template <size_t M> constexpr S(const char (&)[M]) : data{} {
7
data[0] = data[0];
8
}
9
char data[N];
10
};
11
int main() {
12
constexpr S<1> s1("");
13
}