[Bug 233394] [clang bug] Static constructor isn't called in the C++ project

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Nov 22 01:05:48 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233394

            Bug ID: 233394
           Summary: [clang bug] Static constructor isn't called in the C++
                    project
           Product: Base System
           Version: 11.2-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: yuri at freebsd.org

Created attachment 199439
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=199439&action=edit
patch

How to reproduce:
1. Apply this patch to the ports tree: https://reviews.freebsd.org/D18293
2. Install the port from the attached patch 'gazebo.patch'.
3. If you run the command 'gazebo' it would crash because the line
>     static const std::string PathDelimiter = ":";
   in gazebo/common/SystemPaths.cc failed to initialize PathDelimiter
4. But if you change '1' to '0' in the '#if' clause, the workaround would avoid
this problem.

I tried with both base clang and clang-70, both exhibit the problem.

11.2 amd64 r338762

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list