This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/24657] New: bizarre diagnostic on valid (?) constructor
- From: "igodard at pacbell dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Nov 2005 15:34:11 -0000
- Subject: [Bug c++/24657] New: bizarre diagnostic on valid (?) constructor
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The first error reported in the attached is:
/home/ivan/ootbc/common/include/bitRow.hh:752: error: argument of type `size_t
(
bitRow<bool, 1u, bigEndian>::)(bitReference<bool, 1u, bigEndian>) const' does
not match `size_t'
Subsequent diagnostics are an ignorable cascade. The constructor is declared
as:
template<size_t count>
bitRow(bitArray<count, T, bitWidth, ordering>& a)
: start(&a[0]), length(count) {}
and the invocation is:
bitArray<256, T, bitWidth, ordering>
data;
bitRow_t bd(data);
which appears innocuous. The type reported in the diagnostic seems completely
bogus to me, and I think that the code is valid in its context :-)
--
Summary: bizarre diagnostic on valid (?) constructor
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=24657