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: "egallager 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 23:21:07 +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
Eric Gallager <egallager at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |egallager at gcc dot gnu.org
--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #1)
> 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.
It's a common mistake to make; I got confused about that, too, in the
conversation on bug 37041