[Bug c++/13080] New: 3.3 / 3.4
debian-gcc at lists dot debian dot org
gcc-bugzilla@gcc.gnu.org
Sun Nov 16 23:05:00 GMT 2003
[ extracted from http://bugs.debian.org/195468 ]
g++ fails to recognize the ill-formed-ness of
at least the following cases, happily succeeds compiling them...:
struct foo {
virtual void f(void);
};
struct bar {
bar (); // user defined default constructor
};
struct doo {
bar m_bar; // non-POD member w/ u.d.d.c
};
struct zoo: public bar { }; // inherited u.d.d.c
const foo a_foo; // ill-formed - foo has no user-declared def-cons
const bar a_bar; // ok
const doo a_doo; // ill-formed - doo has no user-declared def-cons
const zoo a_zoo; // ill-formed? not sure about this one...
--
Summary: 3.3 / 3.4
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: debian-gcc at lists dot debian dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13080
More information about the Gcc-bugs
mailing list