https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100335
--- Comment #7 from Daniel ---
To me it seems that [over.load] is the right section of the standard as the
start of the section explicitly mentions that the rules there (either all or
none of the overloads must have ref-qualifiers) applies when
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100335
--- Comment #5 from Daniel ---
As a sidenote, the original example is also compiling if test object is made
non-const, i.e. "const Derived test;" is replaced with "Derived test;"
If the argument in Comment 1 is true than the program would still
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100335
--- Comment #2 from Daniel ---
As an extra Info: the other compilers I tested (e.g. clang) accept the code
example as is.
But after reading the cited pet of the standard It seems that GCC is right in
rejecting this and the other compilers have
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100335
Bug ID: 100335
Summary: Using statement of a ref-qualified method from base
class: method not callable on derived object
Product: gcc
Version: 10.3.1
Status: UNCONFIRMED