Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Nov 2018 11:54:39 +0000
From:      bugzilla-noreply@freebsd.org
To:        toolchain@FreeBSD.org
Subject:   [Bug 233394] [clang bug] misc/gazebo: Static constructor isn't called in the C++ project
Message-ID:  <bug-233394-29464-g2zkKdmqtS@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-233394-29464@https.bugs.freebsd.org/bugzilla/>
References:  <bug-233394-29464@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help

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

Dimitry Andric <dim@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dim@FreeBSD.org

--- Comment #1 from Dimitry Andric <dim@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.


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-233394-29464-g2zkKdmqtS>