> On 16 Oct 2018, at 18:21, Akim Demaille <a...@lrde.epita.fr> wrote: > >> Le 16 oct. 2018 à 14:57, Hans Åberg <haber...@telia.com> 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