[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: FYI: c++: avoid GCC 8 warnings
From: |
Hans Åberg |
Subject: |
Re: FYI: c++: avoid GCC 8 warnings |
Date: |
Thu, 16 Aug 2018 15:56:14 +0200 |
> On 16 Aug 2018, at 06:56, Akim Demaille <address@hidden> wrote:
>
>> Le 15 août 2018 à 23:26, Hans Åberg <address@hidden> a écrit :
>>
>>
>>> On 15 Aug 2018, at 19:38, Akim Demaille <address@hidden> wrote:
>>>
>>> The problem is with locations that don't have a constructor, such as
>>> Span (in calc.cc) which is POD.
>>
>> What is this file. I haven’t seen the issue with GCC8, but perhaps the
>> warning is not on.
>
> I’m in the test suite, calc.at.
Is there a way to prevent the tests being removed, and run them by hand?
>>> It is POD on purpose: so that we can
>>> use that structure to test glr.cc which cannot use non POD in its
>>> (C) stacks.
>>
>> Can’t you use std::deque?
>
> Nope. glr.cc is a C++ wrapper around glr.c. Writing a native C++
> glr.cc is a long and difficult task.
It probably must build a tree for the parse branching.