bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bison 3.1 api.value.type {semantic_type} error in gcc8


From: Hans Åberg
Subject: Re: Bison 3.1 api.value.type {semantic_type} error in gcc8
Date: Tue, 16 Oct 2018 19:11:02 +0200

> On 16 Oct 2018, at 18:21, Akim Demaille <address@hidden> wrote:
> 
>> Le 16 oct. 2018 à 14:57, Hans Åberg <address@hidden> a écrit :
>> 
>> The minimal example below compiles with clang++6, but not with g++8. One 
>> would think that it should define a qualified name B::A, used as
>> mu::B::A a;
>> as in the other cases below. But I have it probably by legacy since when 
>> Bison used YYSTYPE only, though.
> 
> Concretely, it is my understanding that this is irrelevant
> to Bison, isn’t it?

It has been reported in 2011, and based on [basic.scope.class] they have 
decided that this is how it should be [1], though it looks as though 
[dcl.typedef] says differently. But too limited to worry about in Bison, I 
think.

1. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50418





reply via email to

[Prev in Thread] Current Thread [Next in Thread]