Since Martin Sebor's patch for PR 71625 to change braced array initializers to STRING_CST in some cases, we need to be ready for STRING_CST with types that are changed by tsubst. fold_convert doesn't know how to deal with STRING_CST, which is reasonable; we really shouldn't expect it to here. So let's handle STRING_CST separately. PR c++/90966 * pt.c (tsubst_copy) [STRING_CST]: Don't use fold_convert.
15 lines
170 B
C
15 lines
170 B
C
// PR c++/90966
|
|
// { dg-do compile { target c++11 } }
|
|
|
|
template<typename I>
|
|
void f()
|
|
{
|
|
using S = signed char;
|
|
constexpr const S v[]{0};
|
|
}
|
|
|
|
int main()
|
|
{
|
|
f<int>();
|
|
}
|