PR c++/66921 * decl.c (cp_complete_array_type): Allow an initializer that already has array type. From-SVN: r231914
10 lines
203 B
C
10 lines
203 B
C
// PR c++/66921
|
|
// { dg-do compile { target c++11 } }
|
|
|
|
template<typename T>
|
|
struct Holder {
|
|
constexpr static const int array[] = { 1, 2, 3 };
|
|
enum {F = array[0]};
|
|
};
|
|
class HI: public Holder<int> {};
|