This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/82316] unexpected warning for using 'register' storage class in extern "C" declarations
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 24 Sep 2017 19:46:39 +0000
- Subject: [Bug c++/82316] unexpected warning for using 'register' storage class in extern "C" declarations
- Auto-submitted: auto-generated
- References: <bug-82316-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82316
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
extern "C" just means the linkage and not actual C code.
This is true with other differences between C and C++ like auto and typedef of
void types and arguments.