public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/108591] New: void{} does not error out in 12.1
@ 2023-01-29 15:47 Mark_B53 at yahoo dot com
  2023-01-29 16:00 ` [Bug c++/108591] " pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: Mark_B53 at yahoo dot com @ 2023-01-29 15:47 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 108591
           Summary: void{} does not error out in 12.1
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: Mark_B53 at yahoo dot com
  Target Milestone: ---

void fn1() {
    return void{};  // fails in gcc 11.3, passes in gcc 12.1
}
void fn2() {
    return void();  // passes in both gcc 11.3 and gcc 12.1
}

I would not have expected fn1 to be legal C++.

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

* [Bug c++/108591] void{} does not error out in 12.1
  2023-01-29 15:47 [Bug c++/108591] New: void{} does not error out in 12.1 Mark_B53 at yahoo dot com
@ 2023-01-29 16:00 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-01-29 16:00 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
dup of bug 102820.
void{} became legal as part of a defect report against the c++ standard.

*** This bug has been marked as a duplicate of bug 102820 ***

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

end of thread, other threads:[~2023-01-29 16:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-29 15:47 [Bug c++/108591] New: void{} does not error out in 12.1 Mark_B53 at yahoo dot com
2023-01-29 16:00 ` [Bug c++/108591] " 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).