blob: a5175b9909bae39c15c672de33b2c68bc410e6cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// { dg-do compile }
template <class T = int>
struct A { // { dg-message "const|operator=" "assignment" }
const T x;
A() : x(0) { } A(T x) : x(x) { }
};
template <class B>
void func ()
{
B y;
y = B(); // { dg-message "synthesized|deleted" }
}
int main (void) { func< A<> >(); }
|