C++ location_type error

Hans Ã…berg <[email protected]> Fri, 1 Oct 2021 10:13:21 +0200
Newsgroups gmane.comp.parsers.bison.bugs
Message-ID <[email protected]>
If one, in C++, uses "%define api.location.type {location_type}", then it will cause a scoping error in GCC but not Clang. Curiously, both compilers are correct, the C++ standard [basic.scope.class] says this is an error, but it is not necessary to issue a diagnostic.