public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/82526] Confusing error for constructor of member [not found] <bug-82526-4@http.gcc.gnu.org/bugzilla/> @ 2021-12-17 3:11 ` pinskia at gcc dot gnu.org 2021-12-17 3:12 ` pinskia at gcc dot gnu.org 1 sibling, 0 replies; 2+ messages in thread From: pinskia at gcc dot gnu.org @ 2021-12-17 3:11 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82526 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |minor Status|UNCONFIRMED |NEW Last reconfirmed| |2021-12-17 Ever confirmed|0 |1 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. Clang reports: <source>:9:3: error: constructor for 'Rectangle' must explicitly initialize the member 'mTopLeft' which does not have a default constructor Rectangle(int x1, int x2, int y1, int y2) ^ <source>:14:9: note: member is declared here Point mTopLeft; ^ <source>:2:7: note: 'Point' declared here class Point { ^ Which might be better. ^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/82526] Confusing error for constructor of member [not found] <bug-82526-4@http.gcc.gnu.org/bugzilla/> 2021-12-17 3:11 ` [Bug c++/82526] Confusing error for constructor of member pinskia at gcc dot gnu.org @ 2021-12-17 3:12 ` pinskia at gcc dot gnu.org 1 sibling, 0 replies; 2+ messages in thread From: pinskia at gcc dot gnu.org @ 2021-12-17 3:12 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82526 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note clang is the only one compiler (I Have access to quickly) which references the field mTopLeft. ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-17 3:12 UTC | newest] Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <bug-82526-4@http.gcc.gnu.org/bugzilla/> 2021-12-17 3:11 ` [Bug c++/82526] Confusing error for constructor of member pinskia at gcc dot gnu.org 2021-12-17 3:12 ` 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).