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: [email protected]
          Reporter: [email protected]

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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to