https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101686
Bug ID: 101686
Summary: export ; or export {} should not be accepted
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: jakub at gcc dot gnu.org
Target Milestone: ---
[module.interface]/3 says:
An exported declaration that is not a module-import-declaration shall declare
at least one name.
If the declaration is not within a header unit, it shall not declare a name
with internal linkage.
but g++ doesn't diagnose this, so it accepts
export ;
export [[]];
export { }
etc.