]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: Add fix note for how to declare main in a module
authorNathaniel Shead <nathanieloshead@gmail.com>
Wed, 25 Jun 2025 11:24:40 +0000 (21:24 +1000)
committerNathaniel Shead <nathanieloshead@gmail.com>
Fri, 27 Jun 2025 07:37:13 +0000 (17:37 +1000)
commite0587298d5e7a97539b134460c37032e20bfcbba
treead532ca691a3e0c8df1013c001634780020705cb
parent5c3043785a5fa598ae5e289edf7e274856981f6b
c++: Add fix note for how to declare main in a module

This patch adds a note to help users unfamiliar with modules terminology
understand how to declare main in a named module since P3618.

There doesn't appear to be an easy robust location available for "the
start of this declaration" that I could find to attach a fixit to, but
the explanation should suffice.

gcc/cp/ChangeLog:

* decl.cc (grokfndecl): Add explanation of how to attach to
global module.

Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
gcc/cp/decl.cc