public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/33478]  New: New warning suggestion: virtual functions called from constructors/destructors
@ 2007-09-18 18:12 yuri at tsoft dot com
  2007-09-18 18:29 ` [Bug c++/33478] " pcarlini at suse dot de
  0 siblings, 1 reply; 2+ messages in thread
From: yuri at tsoft dot com @ 2007-09-18 18:12 UTC (permalink / raw)
  To: gcc-bugs

I would like to suggest that gcc issues a warning (with -Wall) when any virtual
functions are called from constructors and destructors of these objects.

During construtors and destructors derived objects aren't complete and almost
always virtual functions would be called on undefined derived classes.


-- 
           Summary: New warning suggestion: virtual functions called from
                    constructors/destructors
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: yuri at tsoft dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33478


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

* [Bug c++/33478] New warning suggestion: virtual functions called from constructors/destructors
  2007-09-18 18:12 [Bug c++/33478] New: New warning suggestion: virtual functions called from constructors/destructors yuri at tsoft dot com
@ 2007-09-18 18:29 ` pcarlini at suse dot de
  0 siblings, 0 replies; 2+ messages in thread
From: pcarlini at suse dot de @ 2007-09-18 18:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pcarlini at suse dot de  2007-09-18 18:29 -------


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


-- 

pcarlini at suse dot de changed:

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


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33478


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

end of thread, other threads:[~2007-09-18 18:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-18 18:12 [Bug c++/33478] New: New warning suggestion: virtual functions called from constructors/destructors yuri at tsoft dot com
2007-09-18 18:29 ` [Bug c++/33478] " pcarlini at suse dot de

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).