[Bug 233394] [clang bug] misc/gazebo: Static constructor isn't called in the C++ project
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Nov 28 11:54:42 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233394
Dimitry Andric <dim at FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dim at FreeBSD.org
--- Comment #1 from Dimitry Andric <dim at FreeBSD.org> ---
Currently I don't have the time to really investigate, but from the description
and the source code, it seems like a classic case of static initialization
order fiasco. I.e. not a bug in the compiler, but in the program.
Using a #define is the easiest workaround, otherwise the static variable should
probably be moved into the class that is using it. And maybe an upstream PR to
have it properly fixed in the future.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-toolchain
mailing list