This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/36944] [4.4 Regression]: Revision 138123 breaks C++
- From: "hjl dot tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jul 2008 17:08:13 -0000
- Subject: [Bug c++/36944] [4.4 Regression]: Revision 138123 breaks C++
- References: <bug-36944-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from hjl dot tools at gmail dot com 2008-07-26 17:08 -------
A simple testcase:
bash-3.2$ cat /tmp/bar.cc
class XObject
{
public:
int foo;
};
class XObjectPtr
{
public:
explicit
XObjectPtr(XObject* theXObject = 0) : m_xobjectPtr(theXObject)
{
}
private:
XObject * m_xobjectPtr;
};
class SelectionEvent
{
public:
SelectionEvent(bool selection) : m_selection() {}
const XObjectPtr m_selection;
};
bash-3.2$ ./xgcc -B./ -S /tmp/bar.cc
/tmp/bar.cc: In constructor ?SelectionEvent::SelectionEvent(bool)?:
/tmp/bar.cc:22: error: uninitialized member ?SelectionEvent::m_selection? with
?const? type ?const XObjectPtr?
bash-3.2$
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36944