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

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:bad800c03d00a57fc21718c160459d9a1e8d747a

commit r11-5660-gbad800c03d00a57fc21718c160459d9a1e8d747a
Author: Scott Snyder <s...@li-snyder.org>
Date:   Wed Dec 2 15:42:56 2020 +0100

    vec.h: Fix GCC build with -std=gnu++20 [PR98059]

    Apparently vec.h doesn't build with -std=c++20/gnu++20, since the
    DR2237 r11-532 change.
    template <typename T>
    class auto_delete_vec
    {
    private:
      auto_vec_delete<T> (const auto_delete_vec<T> &) = delete;
    };
    which vec.h uses is invalid C++20, one needs to use
      auto_vec_delete (const auto_delete_vec &) = delete;
    instead which is valid all the way back to C++11 (and without = delete
    to C++98).

    2020-12-02  Scott Snyder  <s...@li-snyder.org>

            PR plugins/98059
            * vec.h (auto_delete_vec): Use
            DISABLE_COPY_AND_ASSIGN(auto_delete_vec) instead of
            DISABLE_COPY_AND_ASSIGN(auto_delete_vec<T>) to make it valid C++20
            after DR2237.

Reply via email to