Re: [PATCH RFC] libcpp, libstdc++: add __has_import builtin

2024-11-17 Thread Jason Merrill
On 11/15/24 6:30 PM, Ville Voutilainen wrote: On Sat, 16 Nov 2024 at 01:12, Jason Merrill wrote: Does this seem like an interesting direction? -- 8< -- A problem with coexistence of module std and the library headers is that import and then #include tends to break (PR99000). But even with t

Re: [PATCH RFC] libcpp, libstdc++: add __has_import builtin

2024-11-15 Thread Ville Voutilainen
On Sat, 16 Nov 2024 at 01:12, Jason Merrill wrote: > > Does this seem like an interesting direction? > > -- 8< -- > > A problem with coexistence of module std and the library headers is that > import and then #include tends to break (PR99000). But even with that > fixed, it might be useful to be

[PATCH RFC] libcpp, libstdc++: add __has_import builtin

2024-11-15 Thread Jason Merrill
Does this seem like an interesting direction? -- 8< -- A problem with coexistence of module std and the library headers is that import and then #include tends to break (PR99000). But even with that fixed, it might be useful to be able to test whether a module has been imported. So, this patch i