C++20 doesn't support semantic import in .mm files

Hi,

I've set the C++ language dialect in my project to c++2a.

Than it failed on compiling .mm file which has the following line

@import AppKit;

But if replace it with the following line and link with framework from project build phases, than it works.

#import <AppKit/AppKit.h>

My .mm file is including for adapter swift header file (*-Swift.h) which is auto generated and has this @import directive.

is it a known issue, should I file a bug ?

C++20 doesn't support semantic import in .mm files
 
 
Q