[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
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 25 Jun 2022 07:45:25 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264730 --- 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. -- You are receiving this mail because: You are the assignee for the bug.