public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/102524] New: [modules] Missing diagnostic when an exported namespace is empty
@ 2021-09-28 21:49 johelegp at gmail dot com
2023-03-04 11:37 ` [Bug c++/102524] " johelegp at gmail dot com
0 siblings, 1 reply; 2+ messages in thread
From: johelegp at gmail dot com @ 2021-09-28 21:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102524
Bug ID: 102524
Summary: [modules] Missing diagnostic when an exported
namespace is empty
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: johelegp at gmail dot com
CC: johelegp at gmail dot com
Target Milestone: ---
This is specified at [module.interface].3:
> An exported declaration that is not a module-import-declaration
> shall declare at least one name.
GCC doesn't print any diagnostic (https://godbolt.org/z/oEbTjcfeo)
whereas Clang gives a warning (https://godbolt.org/z/ajszM74j9):
> `mod.cpp:2:18: warning: ISO C++20 does not permit a declaration that
> does not introduce any names to be exported [-Wexport-unnamed]`
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/102524] [modules] Missing diagnostic when an exported namespace is empty
2021-09-28 21:49 [Bug c++/102524] New: [modules] Missing diagnostic when an exported namespace is empty johelegp at gmail dot com
@ 2023-03-04 11:37 ` johelegp at gmail dot com
0 siblings, 0 replies; 2+ messages in thread
From: johelegp at gmail dot com @ 2023-03-04 11:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102524
Johel Ernesto Guerrero Peña <johelegp at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|UNCONFIRMED |RESOLVED
--- Comment #1 from Johel Ernesto Guerrero Peña <johelegp at gmail dot com> ---
Clang no longer warns. This was resolved with
https://github.com/cplusplus/draft/commit/f3ffeb4f05fe4302d8ecee129e72f4e99e10dc02,
which striked the quoted sentence.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-03-04 11:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-28 21:49 [Bug c++/102524] New: [modules] Missing diagnostic when an exported namespace is empty johelegp at gmail dot com
2023-03-04 11:37 ` [Bug c++/102524] " johelegp at gmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).