This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21976] New: Incomplete types are not detected at template definition time
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jun 2005 09:22:26 -0000
- Subject: [Bug c++/21976] New: Incomplete types are not detected at template definition time
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Hello,
the following should probably be flagged as an error without requiring an
instantiation of the template:
-------------------------------
struct A;
template <class> struct B {
void foo(void) { A a; }
};
-------------------------------
GCC accepts the code without complaining.
--
Summary: Incomplete types are not detected at template definition
time
Product: gcc
Version: unknown
Status: UNCONFIRMED
Keywords: accepts-invalid
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: giovannibajo at libero dot it
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21976