public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/48483] New: Construct from yourself w/o warning
@ 2011-04-06 17:38 lisp2d at lisp2d dot net
  2011-04-06 19:20 ` [Bug c++/48483] " d.g.gorbachev at gmail dot com
                   ` (22 more replies)
  0 siblings, 23 replies; 24+ messages in thread
From: lisp2d at lisp2d dot net @ 2011-04-06 17:38 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: Construct from yourself w/o warning
           Product: gcc
           Version: 4.5.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: lisp2d@lisp2d.net


Simple slip in my program bring to waste the time.

Writing the constructor with arguments of new object bring to crash.
No warnings and deep stillness.

The example to crash:

#include<iostream>
class    B{
public:
    int    x;
};
class    A{
public:
    B&    b;
    A(B&x):b(x){}
};
int    main(void){
    A    a(a.b);
    std::clog<<"a.b.x="<<a.b.x<<std::endl;}


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

end of thread, other threads:[~2021-03-25 22:09 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-06 17:38 [Bug c++/48483] New: Construct from yourself w/o warning lisp2d at lisp2d dot net
2011-04-06 19:20 ` [Bug c++/48483] " d.g.gorbachev at gmail dot com
2011-04-06 21:15 ` lisp2d at lisp2d dot net
2011-04-06 22:38 ` d.g.gorbachev at gmail dot com
2011-04-06 22:58 ` d.g.gorbachev at gmail dot com
2011-04-06 23:50 ` redi at gcc dot gnu.org
2011-04-07  1:39 ` d.g.gorbachev at gmail dot com
2011-04-07  4:33 ` lisp2d at lisp2d dot net
2011-04-07  6:20 ` d.g.gorbachev at gmail dot com
2011-04-07  9:42 ` redi at gcc dot gnu.org
2011-04-07 13:19 ` lisp2d at lisp2d dot net
2011-04-07 13:26 ` redi at gcc dot gnu.org
2011-04-07 13:29 ` redi at gcc dot gnu.org
2011-04-07 13:38 ` redi at gcc dot gnu.org
2011-04-07 13:39 ` redi at gcc dot gnu.org
2011-04-07 13:58 ` lisp2d at lisp2d dot net
2011-04-07 14:01 ` redi at gcc dot gnu.org
2012-02-09 11:35 ` manu at gcc dot gnu.org
2012-02-09 16:59 ` lisp2d at lisp2d dot net
2012-02-09 17:04 ` redi at gcc dot gnu.org
2012-02-09 21:38 ` manu at gcc dot gnu.org
2014-11-23 14:58 ` paolo.carlini at oracle dot com
2021-03-25 21:56 ` [Bug tree-optimization/48483] " msebor at gcc dot gnu.org
2021-03-25 22:09 ` cvs-commit 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).