public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/13981] Give message about incomplete class that might be implicitly upcasted. [not found] <bug-13981-4@http.gcc.gnu.org/bugzilla/> @ 2013-08-27 11:39 ` paolo.carlini at oracle dot com 2013-10-17 16:35 ` paolo.carlini at oracle dot com ` (4 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: paolo.carlini at oracle dot com @ 2013-08-27 11:39 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13981 Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC|gcc-bugs at gcc dot gnu.org | Assignee|unassigned at gcc dot gnu.org |paolo.carlini at oracle dot com --- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> --- Mine. ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/13981] Give message about incomplete class that might be implicitly upcasted. [not found] <bug-13981-4@http.gcc.gnu.org/bugzilla/> 2013-08-27 11:39 ` [Bug c++/13981] Give message about incomplete class that might be implicitly upcasted paolo.carlini at oracle dot com @ 2013-10-17 16:35 ` paolo.carlini at oracle dot com 2014-05-07 16:24 ` paolo.carlini at oracle dot com ` (3 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: paolo.carlini at oracle dot com @ 2013-10-17 16:35 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13981 --- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> --- Patchlet posted here: http://gcc.gnu.org/ml/gcc-patches/2013-08/msg01588.html ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/13981] Give message about incomplete class that might be implicitly upcasted. [not found] <bug-13981-4@http.gcc.gnu.org/bugzilla/> 2013-08-27 11:39 ` [Bug c++/13981] Give message about incomplete class that might be implicitly upcasted paolo.carlini at oracle dot com 2013-10-17 16:35 ` paolo.carlini at oracle dot com @ 2014-05-07 16:24 ` paolo.carlini at oracle dot com 2014-05-08 11:42 ` paolo.carlini at oracle dot com ` (2 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: paolo.carlini at oracle dot com @ 2014-05-07 16:24 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13981 Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |chrismonkie at gmail dot com --- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> --- *** Bug 61089 has been marked as a duplicate of this bug. *** ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/13981] Give message about incomplete class that might be implicitly upcasted. [not found] <bug-13981-4@http.gcc.gnu.org/bugzilla/> ` (2 preceding siblings ...) 2014-05-07 16:24 ` paolo.carlini at oracle dot com @ 2014-05-08 11:42 ` paolo.carlini at oracle dot com 2014-05-08 14:31 ` paolo at gcc dot gnu.org 2014-05-08 14:32 ` paolo.carlini at oracle dot com 5 siblings, 0 replies; 7+ messages in thread From: paolo.carlini at oracle dot com @ 2014-05-08 11:42 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13981 --- Comment #6 from Paolo Carlini <paolo.carlini at oracle dot com> --- Sure, I'll do that momentarily. Thanks! ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/13981] Give message about incomplete class that might be implicitly upcasted. [not found] <bug-13981-4@http.gcc.gnu.org/bugzilla/> ` (3 preceding siblings ...) 2014-05-08 11:42 ` paolo.carlini at oracle dot com @ 2014-05-08 14:31 ` paolo at gcc dot gnu.org 2014-05-08 14:32 ` paolo.carlini at oracle dot com 5 siblings, 0 replies; 7+ messages in thread From: paolo at gcc dot gnu.org @ 2014-05-08 14:31 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13981 --- Comment #7 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> --- Author: paolo Date: Thu May 8 14:30:56 2014 New Revision: 210217 URL: http://gcc.gnu.org/viewcvs?rev=210217&root=gcc&view=rev Log: /cp 2014-05-08 Paolo Carlini <paolo.carlini@oracle.com> PR c++/13981 * typeck.c (convert_for_assignment): Provide an inform for pointers to incomplete class types. /testsuite 2014-05-08 Paolo Carlini <paolo.carlini@oracle.com> PR c++/13981 * g++.dg/diagnostic/pr13981.C: New. Added: trunk/gcc/testsuite/g++.dg/diagnostic/pr13981.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/typeck.c trunk/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/13981] Give message about incomplete class that might be implicitly upcasted. [not found] <bug-13981-4@http.gcc.gnu.org/bugzilla/> ` (4 preceding siblings ...) 2014-05-08 14:31 ` paolo at gcc dot gnu.org @ 2014-05-08 14:32 ` paolo.carlini at oracle dot com 5 siblings, 0 replies; 7+ messages in thread From: paolo.carlini at oracle dot com @ 2014-05-08 14:32 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13981 Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED Assignee|paolo.carlini at oracle dot com |unassigned at gcc dot gnu.org Target Milestone|--- |4.10.0 --- Comment #8 from Paolo Carlini <paolo.carlini at oracle dot com> --- Fixed. ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/13981] New: Give message about incomplete class that might be implicitly upcasted. @ 2004-02-02 15:30 mattyt-bugzilla at tpg dot com dot au 2004-02-02 15:33 ` [Bug c++/13981] " pinskia at gcc dot gnu dot org 0 siblings, 1 reply; 7+ messages in thread From: mattyt-bugzilla at tpg dot com dot au @ 2004-02-02 15:30 UTC (permalink / raw) To: gcc-bugs The code: struct A {}; struct B; void func( A* a ); int main(int argc, char *argv[]) { B *b = 0; func(b); }; gives the error message: upcast.cc: In function `int main(int, char**)': upcast.cc:8: error: cannot convert `B*' to `A*' for argument `1' to `void func(A*)' which is correct. However in other places gcc will tell you when you've tried to do something with an incomplete type which might have succeeded if it was complete. It would be nice if it could do it here, since B might be a subclass of A. This should be just a simple matter of adding "[B is incomplete]" to the end of the error message or something. -- Summary: Give message about incomplete class that might be implicitly upcasted. Product: gcc Version: 3.4.0 Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mattyt-bugzilla at tpg dot com dot au CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13981 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/13981] Give message about incomplete class that might be implicitly upcasted. 2004-02-02 15:30 [Bug c++/13981] New: " mattyt-bugzilla at tpg dot com dot au @ 2004-02-02 15:33 ` pinskia at gcc dot gnu dot org 0 siblings, 0 replies; 7+ messages in thread From: pinskia at gcc dot gnu dot org @ 2004-02-02 15:33 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-02-02 15:33 ------- Confirmed. -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Keywords| |diagnostic Last reconfirmed|0000-00-00 00:00:00 |2004-02-02 15:33:04 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13981 ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-05-08 14:32 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <bug-13981-4@http.gcc.gnu.org/bugzilla/> 2013-08-27 11:39 ` [Bug c++/13981] Give message about incomplete class that might be implicitly upcasted paolo.carlini at oracle dot com 2013-10-17 16:35 ` paolo.carlini at oracle dot com 2014-05-07 16:24 ` paolo.carlini at oracle dot com 2014-05-08 11:42 ` paolo.carlini at oracle dot com 2014-05-08 14:31 ` paolo at gcc dot gnu.org 2014-05-08 14:32 ` paolo.carlini at oracle dot com 2004-02-02 15:30 [Bug c++/13981] New: " mattyt-bugzilla at tpg dot com dot au 2004-02-02 15:33 ` [Bug c++/13981] " pinskia at gcc dot gnu dot 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).