template<typename T> class A
public:
int i;
};
gets you:
~/ootbc/members/src$ g++ foo.cc
foo.cc:2: error: expected unqualified-id before "public"
foo.cc:2: error: expected `;' before "public"
foo.cc:4: error: expected declaration before '}' token
Actually, I think the only thing that is syntactically valid before "public:"
here is a "{".
Ivan
--
Summary: poor diagnostic
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: igodard at pacbell dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24591