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