This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21993] New: rejects valid
- From: "igodard at pacbell dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jun 2005 09:00:16 -0000
- Subject: [Bug c++/21993] New: rejects valid
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
template<typename T> struct foo {};
struct bar: foo<bar>{};
struct index;
struct index: foo<index> {};
gets you:
~/ootbc/members/src$ g++ foo.cc
foo.cc:4: error: `index' was not declared in this scope
foo.cc:4: error: template argument 1 is invalid
--
Summary: rejects valid
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: igodard at pacbell dot net
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21993