Re: [PATCH 5/9] build: reject C++ compilers that don't support std::vector::data

Akim Demaille <[email protected]> Fri, 13 Aug 2021 08:11:16 +0200
Newsgroups gmane.comp.parsers.bison.patches
Message-ID <[email protected]>
Hi Hans,

> Le 12 ao=C3=BBt 2021 =C3=A0 10:40, Hans =C3=85berg =
<[email protected]> a =C3=A9crit :
>=20
>=20
>> On 12 Aug 2021, at 10:18, Akim Demaille <[email protected]> =
wrote:
>>=20
>> GCC 4.2 on macOS claims to support C++98, but does not feature it.
>>=20
>> input.cc: In member function 'void state_stack::yycompressStack()':
>> input.cc:1774: error: 'class std::vector<glr_stack_item, =
std::allocator<glr_stack_item> >' has no member named 'data'
>=20
> The member 'data' was introduced in C++11.
>=20
> https://en.cppreference.com/w/cpp/container/vector/data

That page is exactly the one I looked at first to see that it's C++98, =
not C++11.  Read the bottom of =
<https://en.cppreference.com/w/cpp/container/vector>.

Cheers!=