Bug 13080 - 3.3 / 3.4
Summary: 3.3 / 3.4
Status: RESOLVED DUPLICATE of bug 12567
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 3.3.2
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-16 23:05 UTC by Debian GCC Maintainers
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Debian GCC Maintainers 2003-11-16 23:05:23 UTC
[ 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...
Comment 1 Andrew Pinski 2003-11-16 23:09:37 UTC
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 ***
Comment 2 Matthias Klose 2003-11-16 23:57:03 UTC
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.