This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/23639] New: [3.4/4.0/4.1 regression] Bad error message: not a member of '<declaration error>'
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Aug 2005 16:43:24 -0000
- Subject: [Bug c++/23639] New: [3.4/4.0/4.1 regression] Bad error message: not a member of '<declaration error>'
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
For a testcase like
template<int> struct A
{
enum { e = 0 };
};
int i = A<void>::e;
we get the following error:
error.cc:6: error: type/value mismatch at argument 1 in template parameter
list for 'template<int <anonymous> > struct A'
error.cc:6: error: expected a constant of type 'int', got 'void'
error.cc:6: error: 'e' is not a member of '<declaration error>'
The last line is not really helpful.
Patch will follow soon.
--
Summary: [3.4/4.0/4.1 regression] Bad error message: not a member
of '<declaration error>'
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23639