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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid, wrong-code

--- Comment #13 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Here is a run time testcase of the same issue from PR 86032:
struct Empty
{
        Empty& operator=(const Empty&) = default;
};

template<typename T>
class ShowType;

template<>
struct ShowType<Empty&>{int t = 0;};
template<>
struct ShowType<Empty>{int t = 1;};

int main()
{
  ShowType<decltype(Empty() = Empty())> example;
  return example.t;
}

Reply via email to