https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91770
Bug ID: 91770
Summary: warn on #includes inside extern C regions
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: nathan at gcc dot gnu.org
Target Milestone: ---
Add a warning to detect:
extern "C" {
#include "foo"
}
as that will cause problems with c++20 header-units & include translation.
Bonus points if the warning triggers only when "foo" itself contains an outer
extern "C" { region.