bug-bison
[Top][All Lists]
Advanced

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

C++ location_type error


From: Hans Åberg
Subject: C++ location_type error
Date: Fri, 1 Oct 2021 10:13:21 +0200

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.





reply via email to

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