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

Reply via email to