public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/108333] New: [10.3/10.4/11/12/13/trunk Regression] The behavior of direct-non-list-initialized is not correct, parsing error on valid code @ 2023-01-08 5:47 yronglin777 at gmail dot com 2023-01-08 5:50 ` [Bug c++/108333] [10/11/12/13/trunk " pinskia at gcc dot gnu.org 2023-01-08 6:45 ` [Bug c++/108333] [10/11/12/13/trunk Regression] no_unique_address and direct-non-list-initialization is rejected pinskia at gcc dot gnu.org 0 siblings, 2 replies; 3+ messages in thread From: yronglin777 at gmail dot com @ 2023-01-08 5:47 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108333 Bug ID: 108333 Summary: [10.3/10.4/11/12/13/trunk Regression] The behavior of direct-non-list-initialized is not correct, parsing error on valid code Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: yronglin777 at gmail dot com Target Milestone: --- GCC parsing error on valid code: Compiler Explorer: https://godbolt.org/z/K6edrdTG5 (Thanks Nikolas Klauser) ``` struct NonCopyable { NonCopyable(int) {} NonCopyable(const NonCopyable&) = delete; }; struct S { S(int i) : val(NonCopyable{1}) {} [[no_unique_address]] NonCopyable val; }; struct T { T(int i) : val(NonCopyable{1}) {} NonCopyable val; }; ``` This code accept by GCC[9/10.1/10.2], clang and MSVC, but compile failed with GCC[10.3/10.4/11/12/13/trunk], seems a regression. ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/108333] [10/11/12/13/trunk Regression] The behavior of direct-non-list-initialized is not correct, parsing error on valid code 2023-01-08 5:47 [Bug c++/108333] New: [10.3/10.4/11/12/13/trunk Regression] The behavior of direct-non-list-initialized is not correct, parsing error on valid code yronglin777 at gmail dot com @ 2023-01-08 5:50 ` pinskia at gcc dot gnu.org 2023-01-08 6:45 ` [Bug c++/108333] [10/11/12/13/trunk Regression] no_unique_address and direct-non-list-initialization is rejected pinskia at gcc dot gnu.org 1 sibling, 0 replies; 3+ messages in thread From: pinskia at gcc dot gnu.org @ 2023-01-08 5:50 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108333 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |10.5 Summary|[10.3/10.4/11/12/13/trunk |[10/11/12/13/trunk |Regression] The behavior of |Regression] The behavior of |direct-non-list-initialized |direct-non-list-initialized |is not correct, parsing |is not correct, parsing |error on valid code |error on valid code ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/108333] [10/11/12/13/trunk Regression] no_unique_address and direct-non-list-initialization is rejected 2023-01-08 5:47 [Bug c++/108333] New: [10.3/10.4/11/12/13/trunk Regression] The behavior of direct-non-list-initialized is not correct, parsing error on valid code yronglin777 at gmail dot com 2023-01-08 5:50 ` [Bug c++/108333] [10/11/12/13/trunk " pinskia at gcc dot gnu.org @ 2023-01-08 6:45 ` pinskia at gcc dot gnu.org 1 sibling, 0 replies; 3+ messages in thread From: pinskia at gcc dot gnu.org @ 2023-01-08 6:45 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108333 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 98995. See bug 98995 comment #2 on why this is even a language/ABI issue and it is currently suspended as it might not be a legal thing to do ... *** This bug has been marked as a duplicate of bug 98995 *** ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-01-08 6:45 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2023-01-08 5:47 [Bug c++/108333] New: [10.3/10.4/11/12/13/trunk Regression] The behavior of direct-non-list-initialized is not correct, parsing error on valid code yronglin777 at gmail dot com 2023-01-08 5:50 ` [Bug c++/108333] [10/11/12/13/trunk " pinskia at gcc dot gnu.org 2023-01-08 6:45 ` [Bug c++/108333] [10/11/12/13/trunk Regression] no_unique_address and direct-non-list-initialization is rejected 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).