https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80785
Bug ID: 80785
Summary: warning for static definitions inside extern "C"
Product: gcc
Version: 7.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: daniel.gutson at intel dot com
Target Milestone: ---
The following code is contradictory, with some probability that the programmer
made is wrongly assuming something:
extern "C"
{
static int x = 1;
}
I don't see why one would want to do this.
Of course this could be filed as feature request or enhancement.