Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal Compiler Error on GCC (-fPIC -std=c++17 -Ox) #611

Open
Kretikus opened this issue Aug 17, 2023 · 0 comments
Open

Internal Compiler Error on GCC (-fPIC -std=c++17 -Ox) #611

Kretikus opened this issue Aug 17, 2023 · 0 comments

Comments

@Kretikus
Copy link

Kretikus commented Aug 17, 2023

  • Compiler Used: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
  • Operating System: Debian 11.7
  • Architecture (64bit):

Chaiscript 6.1.0 (from vcpkg)

Expected Behavior

It compiles

Actual Behavior

gcc crashes with internal compiler error as soon as some Optimization Flag is given

Minimal Example to Reproduce Behavior

main.cpp:

#include <chaiscript/chaiscript.hpp>
int main(int argc, char* argv[])
{
chaiscript::ChaiScript chai;
}

compile with:
g++ -I_path to chaiscriptinclude_ main.cpp -std=c++17 -DNDEBUG -fPIC -O3

/home/qs-master/vcpkg/installed/x64-linux/include/chaiscript/dispatchkit/bootstrap.hpp: In substitution of 'template<class T, class Q> chaiscript::Proxy_Function chaiscript::fun(T&&, const Q&) [with T = <missing>; Q = <missing>]':
/home/qs-master/vcpkg/installed/x64-linux/include/chaiscript/dispatchkit/bootstrap.hpp:148:16:   required from 'void chaiscript::bootstrap::bootstrap_pod_type(const string&, chaiscript::Module&) [with T = double; std::string = std::__cxx11::basic_string<char>]'
/home/qs-master/vcpkg/installed/x64-linux/include/chaiscript/dispatchkit/bootstrap.hpp:470:47:   required from here
/home/qs-master/vcpkg/installed/x64-linux/include/chaiscript/dispatchkit/bootstrap.hpp:148:16: internal compiler error: Segmentation fault
  148 |       m.add(fun(&parse_string<T>), "to_" + name);
      |             ~~~^~~~~~~~~~~~~~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant