[Bug c++/38622] New: operator ?: Does not check identity of types
lisp2d at lisp2d dot net
gcc-bugzilla@gcc.gnu.org
Wed Dec 24 20:28:00 GMT 2008
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=38622
More information about the Gcc-bugs
mailing list