[Bug 264730] clang++ -fmodules fails when using stdout from cstdio: error: declaration of '__stdoutp' must be imported from module 'std.iosfwd' before it is required

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 18 Jun 2022 23:36:43 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264730

Mark Millard <marklmi26-fbsd@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marklmi26-fbsd@yahoo.com

--- Comment #5 from Mark Millard <marklmi26-fbsd@yahoo.com> ---
As I understand it, the C++20 standard makes a distinction between:

A) C++ headers ( such as <chrono> )
vs.
B) C headers adopted by C++ ( such as <cassert> or <cstdio> )

So that:

export module NAME0;
import <chrono>
. . .

is supposed to be known to be okay. But:

export module NAME1;
import <cstdio>
. . .

is not portable and could give an error as a result
without violating the standard.

It leaves me wondering if the specific example
presented has wondered outside what is actually
supposed to be guaranteed by the C++20 standard.
(At this point I do not know.) The context is
different in the example but it might be related.

-- 
You are receiving this mail because:
You are the assignee for the bug.