public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/109247] New: [13 Regression] error: converting to ‘optional<WebCore::SourceBrush::Brush>’ from initializer list would use explicit constructor ‘optional<_Tp>::optional(_Up) [with _Up = int; _Tp = WebCore::SourceBrush::Brush]’ since r13-6765-ga226590fefb35ed6 Date: Wed, 22 Mar 2023 12:16:36 +0000 [thread overview] Message-ID: <bug-109247-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109247 Bug ID: 109247 Summary: [13 Regression] error: converting to ‘optional<WebCore::SourceBrush::Brush>’ from initializer list would use explicit constructor ‘optional<_Tp>::optional(_Up) [with _Up = int; _Tp = WebCore::SourceBrush::Brush]’ since r13-6765-ga226590fefb35ed6 Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: mpolacek at gcc dot gnu.org Target Milestone: --- The following is reduced from webkit2gtk3:gtk3 package: $ cat webcore13.ii template <typename _Tp> struct optional { template <typename _Up> explicit optional(_Up); template <typename _Up = _Tp> void operator=(_Up); }; namespace WebCore { int setPattern_pattern; struct SourceBrush { struct Brush { int brush; }; void setPattern() { m_brush = {setPattern_pattern}; } optional<Brush> m_brush; }; } // namespace WebCore $ clang++ webcore13.ii -c && g++-12 webcore13.ii -c $ g++ webcore13.ii -c webcore13.ii: In member function ‘void WebCore::SourceBrush::setPattern()’: webcore13.ii:11:52: error: converting to ‘optional<WebCore::SourceBrush::Brush>’ from initializer list would use explicit constructor ‘optional<_Tp>::optional(_Up) [with _Up = int; _Tp = WebCore::SourceBrush::Brush]’ 11 | void setPattern() { m_brush = {setPattern_pattern}; } | ^
next reply other threads:[~2023-03-22 12:16 UTC|newest] Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-03-22 12:16 marxin at gcc dot gnu.org [this message] 2023-03-22 12:16 ` [Bug c++/109247] " marxin at gcc dot gnu.org 2023-03-23 9:41 ` [Bug c++/109247] [13 Regression] optional<T> o; o = {x}; wants to use explicit optional(U) constructor " jakub at gcc dot gnu.org 2023-03-23 12:12 ` jason at gcc dot gnu.org 2023-03-23 13:20 ` jason at gcc dot gnu.org 2023-03-23 13:30 ` ppalka at gcc dot gnu.org 2023-03-23 14:04 ` ppalka at gcc dot gnu.org 2023-03-23 18:42 ` jason at gcc dot gnu.org 2023-03-23 18:55 ` jason at gcc dot gnu.org 2023-03-23 20:03 ` jason at gcc dot gnu.org 2023-03-24 9:13 ` marxin at gcc dot gnu.org 2023-03-27 22:29 ` jakub at gcc dot gnu.org 2023-04-26 6:58 ` [Bug c++/109247] [13/14 " rguenth at gcc dot gnu.org 2023-04-28 14:57 ` pinskia at gcc dot gnu.org 2023-04-28 15:41 ` mpolacek at gcc dot gnu.org 2023-05-17 10:19 ` redi at gcc dot gnu.org 2023-05-22 22:52 ` pinskia at gcc dot gnu.org 2023-05-31 19:35 ` jason at gcc dot gnu.org 2023-05-31 21:02 ` jason at gcc dot gnu.org 2023-06-02 15:54 ` cvs-commit at gcc dot gnu.org 2023-06-23 16:43 ` cvs-commit at gcc dot gnu.org 2023-07-27 9:25 ` rguenth at gcc dot gnu.org 2024-03-10 3:34 ` law at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-109247-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).