--- Comment #4 from Jonathan Wakely <redi at gcc dot> ---
FWIW Clang says: error: member function 'bar1' not viable: 'this' argument has type
'const Foo', but function is not marked const
                ^~~ note: 'bar1' declared here
        void bar1() {}
1 error generated.

And EDG says:

"", line 4: error: the object has type qualifiers that are not compatible
          with the member function
            object type is: const Foo

1 error detected in the compilation of "".

Reply via email to