| 1 |
// PR c++/115657 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
|
| 4 |
struct NonIntegral |
| 5 |
{ |
| 6 |
constexpr operator int() { return 0; } |
| 7 |
}; |
| 8 |
|
| 9 |
template<typename T> struct TemplatedStructural |
| 10 |
{ |
| 11 |
enum { e = NonIntegral{} }; |
| 12 |
}; |
| 13 |
|
| 14 |
template struct TemplatedStructural<void>; |