| 1 |
// { dg-do compile } |
| 2 |
// Origin: Mark Mitchell <[email protected]> |
| 3 |
|
| 4 |
template <class T> |
| 5 |
struct S { // { dg-error "const member\[^\n\r\]*cannot use default assignment operator" } |
| 6 |
S(); |
| 7 |
T t; |
| 8 |
}; |
| 9 |
|
| 10 |
void f() |
| 11 |
{ |
| 12 |
S<const int> s; |
| 13 |
s = s; // { dg-message "synthesized|deleted" } |
| 14 |
} |