godotengine / godot-cpp

C++ bindings for the Godot script API
MIT License
1.7k stars 525 forks source link

Segfault when using an unnamed namespace in .cpp file #1538

Closed OffsetMOSFET closed 2 months ago

OffsetMOSFET commented 2 months ago

Godot version

4.2.2

godot-cpp version

4.2.2

System information

Ubuntu 22.04.4 LTS 64-bit

Issue description

Using an unnamed namespace in a .cpp file for godot-cpp causes a segfault immediately from loading the library.

Not sure if this is expected behavior or not.

Steps to reproduce

namespace { void sample_function() { do thing }; }

Minimal reproduction project

N/A

OffsetMOSFET commented 2 months ago

Sorry, this appears to be a duplicate of #1449.