public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/99468] New: [modules] awkward diagnostic for named-module inside header unit
@ 2021-03-08 16:15 nathan at gcc dot gnu.org
2021-03-08 18:40 ` [Bug c++/99468] " nathan at gcc dot gnu.org
2021-03-08 18:40 ` nathan at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: nathan at gcc dot gnu.org @ 2021-03-08 16:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99468
Bug ID: 99468
Summary: [modules] awkward diagnostic for named-module inside
header unit
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: nathan at gcc dot gnu.org
Target Milestone: ---
We correctly reject a module-declaration appearing in a header-unit
compilation. But the diagnostic is ... poor
./cc1plus -std=c++20 -fmodule-header -quiet constrained-partial-1_a.C
constrained-partial-1_a.C:3:8: error: module already declared
3 | export module M;
| ^~~~~~
constrained-partial-1_a.C:3:8: note: module 'M' declared here
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/99468] [modules] awkward diagnostic for named-module inside header unit
2021-03-08 16:15 [Bug c++/99468] New: [modules] awkward diagnostic for named-module inside header unit nathan at gcc dot gnu.org
@ 2021-03-08 18:40 ` nathan at gcc dot gnu.org
2021-03-08 18:40 ` nathan at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: nathan at gcc dot gnu.org @ 2021-03-08 18:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99468
--- Comment #1 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
504450c708c 2021-03-08 | c++: Poor diagnostic in header-unit [PR 99468]
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/99468] [modules] awkward diagnostic for named-module inside header unit
2021-03-08 16:15 [Bug c++/99468] New: [modules] awkward diagnostic for named-module inside header unit nathan at gcc dot gnu.org
2021-03-08 18:40 ` [Bug c++/99468] " nathan at gcc dot gnu.org
@ 2021-03-08 18:40 ` nathan at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: nathan at gcc dot gnu.org @ 2021-03-08 18:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99468
Nathan Sidwell <nathan at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
504450c708c 2021-03-08 | c++: Poor diagnostic in header-unit [PR 99468]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-03-08 18:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-08 16:15 [Bug c++/99468] New: [modules] awkward diagnostic for named-module inside header unit nathan at gcc dot gnu.org
2021-03-08 18:40 ` [Bug c++/99468] " nathan at gcc dot gnu.org
2021-03-08 18:40 ` nathan at gcc dot gnu.org
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).