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
c++: robustify testcase [PR109752]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
constexpr-array6.C
blob
1f15bef8d0cb76381b91348829cb55c89932dedd
1
// PR c++/87075
2
// { dg-do compile { target c++14 } }
3
4
template <typename T>
5
struct vec
6
{
7
struct { T y; } n;
8
vec() = default;
9
};
10
11
template <typename T>
12
struct S
13
{
14
vec<T> value[2];
15
template<typename U>
16
constexpr S(const U&);
17
};
18
19
template<typename T>
20
template<typename X>
21
constexpr S<T>::S(const X&)
22
{
23
value[0] = vec<T>();
24
}
25
26
S<float>m(0);