OSDN Git Service

PR c++/47277
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / init / ref8.C
1 struct A {
2    A operator=(const A&);
3 };
4
5 A operator*(A, A);
6
7 A& operator+=(A& a, const A& b)
8 {
9    return a = a * b;            // { dg-error "non-const reference" }
10 }