1 2 3 4 5 6
/* { dg-do compile } */ /* { dg-options "-fpermissive" } */ class X { mutable int &q; /* { dg-warning "cannot be declared 'mutable'" } */ };