Closed hangingman closed 3 years ago
Apple clang version 11.0.0 (clang-1100.0.33.17) does not need this, but clang
isn't always faithful to the standard.
Which version of g++
do you have? What does g++ --version
print?
I can reproduce the problem with c++-11 (Homebrew GCC 11.2.0) 11.2.0.
On C++ backend, generated codes should add
#include <algorithm>
This was the case until BNFC-2.9.1, so it is a regression I introduced when unifying the bison
backends.
@andreasabel Great, thank you !
FYI my g++ version
$ g++ --version
g++ (Debian 10.2.1-6) 10.2.1 20210110
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
On C++ backend, generated codes should add
#include <algorithm>
This is my output logs during building bnfc generated C++ code