This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/48483] Construct from yourself w/o warning
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 09 Feb 2012 21:37:38 +0000
- Subject: [Bug c++/48483] Construct from yourself w/o warning
- Auto-submitted: auto-generated
- References: <bug-48483-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48483
--- Comment #20 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> 2012-02-09 21:37:38 UTC ---
(In reply to comment #18)
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48483#c2
> shows that function calling of object before constructor is bad idea and must
> be strongly forbidden.
Lisp2D, I think you could start with the testcase in comment 16, and try to
figure out what would be needed to detect this case, as a firt step. All the
code you need to look is in the C++ FE. Use gdb and follow the code. See also
http://gcc.gnu.org/contribute.html and http://gcc.gnu.org/wiki/GettingStarted
But if you expect that someone else is going to fix this for you, I think you
may wait a long time. There are many bugs to fix.