[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 5/9] build: reject C++ compilers that don't support std::vect
From: |
Akim Demaille |
Subject: |
Re: [PATCH 5/9] build: reject C++ compilers that don't support std::vector::data |
Date: |
Fri, 13 Aug 2021 08:11:16 +0200 |
Hi Hans,
> Le 12 août 2021 à 10:40, Hans Åberg <haberg-1@telia.com> a écrit :
>
>
>> On 12 Aug 2021, at 10:18, Akim Demaille <akim.demaille@gmail.com> wrote:
>>
>> GCC 4.2 on macOS claims to support C++98, but does not feature it.
>>
>> 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'
>
> The member 'data' was introduced in C++11.
>
> 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!
- [PATCH 0/9] Various fixes for the tests, Akim Demaille, 2021/08/12
- [PATCH 1/9] c: fix _Noreturn support detection, Akim Demaille, 2021/08/12
- [PATCH 2/9] tests: be robust to old versions of xlstproc, Akim Demaille, 2021/08/12
- [PATCH 3/9] tests: remove obsolete checks, Akim Demaille, 2021/08/12
- [PATCH 4/9] build: check for C++ 20 and 2b, Akim Demaille, 2021/08/12
- [PATCH 5/9] build: reject C++ compilers that don't support std::vector::data, Akim Demaille, 2021/08/12
- Re: [PATCH 5/9] build: reject C++ compilers that don't support std::vector::data, Hans Åberg, 2021/08/12
- Re: [PATCH 5/9] build: reject C++ compilers that don't support std::vector::data,
Akim Demaille <=
- Re: [PATCH 5/9] build: reject C++ compilers that don't support std::vector::data, Hans Åberg, 2021/08/13
- Re: [PATCH 5/9] build: reject C++ compilers that don't support std::vector::data, Akim Demaille, 2021/08/17
- Re: [PATCH 5/9] build: reject C++ compilers that don't support std::vector::data, Hans Åberg, 2021/08/17
- Re: [PATCH 5/9] build: reject C++ compilers that don't support std::vector::data, Hans Åberg, 2021/08/17
- Re: [PATCH 5/9] build: reject C++ compilers that don't support std::vector::data, Akim Demaille, 2021/08/19
- Re: [PATCH 5/9] build: reject C++ compilers that don't support std::vector::data, Hans Åberg, 2021/08/19
[PATCH 6/9] build: modernize to newer Autoconf releases, Akim Demaille, 2021/08/12
[PATCH 7/9] news: be clear that glr2.cc is C++11, Akim Demaille, 2021/08/12
[PATCH 8/9] gnulib: update, Akim Demaille, 2021/08/12
[PATCH 9/9] tests: fix incorrect test case, Akim Demaille, 2021/08/12