This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/82316] unexpected warning for using 'register' storage class in extern "C" declarations


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]