| 1 |
// PR c++/92752 |
| 2 |
// { dg-do compile } |
| 3 |
// { dg-additional-options "-Wignored-qualifiers" } |
| 4 |
|
| 5 |
struct X; |
| 6 |
|
| 7 |
template<class T> |
| 8 |
struct Wrap { |
| 9 |
T data; |
| 10 |
Wrap() : data() {} |
| 11 |
}; |
| 12 |
|
| 13 |
typedef int (X::*type)(); |
| 14 |
Wrap<const type> x; |
| 15 |
#if __cpp_initializer_lists |
| 16 |
const type t{}; |
| 17 |
#endif |