public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/101686] New: export ; or export {} should not be accepted
@ 2021-07-30  8:37 jakub at gcc dot gnu.org
  2021-07-30  8:38 ` [Bug c++/101686] " jakub at gcc dot gnu.org
  2021-08-13 19:39 ` pinskia at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-07-30  8:37 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101686

            Bug ID: 101686
           Summary: export ; or export {} should not be accepted
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
  Target Milestone: ---

[module.interface]/3 says:
An exported declaration that is not a module-import-declaration shall declare
at least one name.
If the declaration is not within a header unit, it shall not declare a name
with internal linkage.
but g++ doesn't diagnose this, so it accepts
export ;
export [[]];
export { }
etc.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/101686] export ; or export {} should not be accepted
  2021-07-30  8:37 [Bug c++/101686] New: export ; or export {} should not be accepted jakub at gcc dot gnu.org
@ 2021-07-30  8:38 ` jakub at gcc dot gnu.org
  2021-08-13 19:39 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-07-30  8:38 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101686

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
g++.dg/modules/pr101582-1.C testcase covers it with xfailed dg-error lines.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/101686] export ; or export {} should not be accepted
  2021-07-30  8:37 [Bug c++/101686] New: export ; or export {} should not be accepted jakub at gcc dot gnu.org
  2021-07-30  8:38 ` [Bug c++/101686] " jakub at gcc dot gnu.org
@ 2021-08-13 19:39 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-13 19:39 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101686

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2021-08-13
             Status|UNCONFIRMED                 |NEW
           Keywords|                            |xfail
     Ever confirmed|0                           |1

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-08-13 19:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-30  8:37 [Bug c++/101686] New: export ; or export {} should not be accepted jakub at gcc dot gnu.org
2021-07-30  8:38 ` [Bug c++/101686] " jakub at gcc dot gnu.org
2021-08-13 19:39 ` pinskia 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).