[ 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...
Some at debian messed up because this is exact dup of bug 12567 and even the same debain bug number, 195468. *** This bug has been marked as a duplicate of 12567 ***
Subject: Re: 3.3 / 3.4 pinskia at gcc dot gnu dot org writes: > > ------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-16 23:09 ------- > Some at debian messed up because this is exact dup of bug 12567 and even the same debain bug > number, 195468. :-( my mistake ... didn't mark it as forwarded in the Debian BTS.