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

--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Marek Polacek <mpola...@gcc.gnu.org>:

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

commit r15-2695-ga790828ccb3b06a7771f871651e7b54d13c3a168
Author: Marek Polacek <pola...@redhat.com>
Date:   Thu Aug 1 11:32:26 2024 -0400

    c++: DR882, main cannot be deleted [PR116169]

    This DR clarifies that "int main() = delete;" is ill-formed.

            PR c++/116169

    gcc/cp/ChangeLog:

            * decl.cc (cp_finish_decl): Disallow deleting ::main.

    gcc/testsuite/ChangeLog:

            * g++.dg/DRs/dr882.C: New test.
  • [Bug c++/116169] [DR882] `int m... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to