Date: Sat, 25 Jun 2022 07:45:25 +0000 From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [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 Message-ID: <bug-264730-29464-loseG3gQVR@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-264730-29464@https.bugs.freebsd.org/bugzilla/> References: <bug-264730-29464@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264730 --- Comment #7 from Mark Millard <marklmi26-fbsd@yahoo.com> --- (In reply to Mark Millard from comment #6) If a #include lists a importable header, it is implementation defined for if the #include is replaced by an import directive for the header in question or not. But <cstdio> does not have to be importable: it is not listed in Table 21 of, for example, INCITS/ISO/IEC 14882:2020 (2021). So it appears that definitions outside 14882:2020 need to be used to establish the expected (but not necessarily portable) behavior for the example. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-264730-29464-loseG3gQVR>