This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/38623] New: operator ?: Does not check identity of types
- From: "lisp2d at lisp2d dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Dec 2008 20:30:30 -0000
- Subject: [Bug c++/38623] New: operator ?: Does not check identity of types
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
class A{public:int x;A():x(0){};};
class B:public A{public:int y;B():A(),y(0){};};
A debugg(){
A xa;
B xb;
return (false?xa:xb);}
makes memory crash
--
Summary: operator ?: Does not check identity of types
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: lisp2d at lisp2d dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38623