[Bug c++/107773] Class members do not hide inherited types inside requires

ppalka at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Nov 28 16:41:12 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107773

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ppalka at gcc dot gnu.org

--- Comment #2 from Patrick Palka <ppalka at gcc dot gnu.org> ---
accepts-invalid c++98 testcase (not a regression):

struct a {
  typedef void get;
};

struct b : a {
  int get(int i) const;
};

template<class T>
void f() {
  typedef typename T::get type;
}

template void f<b>();


More information about the Gcc-bugs mailing list