You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With GCC, moving the m_doc initialization OUT OF the member initializer list makes this mirror clang. I'll see if I can find a solution / reason this is happening.
When the GCC compiled binary hits the member initialization, it goes into a json_ref constructor. Clang seems to be avoiding this at all optimization levels. I can't seem to get GDB to breakpoint on the member initializer...
Different results between compilers.
https://wandbox.org/permlink/hFofcAQwaX2JMBQ6
The link is for clang 7.0. If you do the same config (no boost, add -I. in the options, and select GCC 8.2.0), you'll get different output.
The output should be the same between both compilers, right?
Constructing my member variable from a
json const &
in gcc, encapsulates the internal object into an array.GCC 8.2.0 and Clang 7.0. Not sure which compiler is yielding proper results.
develop
branch?Release, 3.4.0.
No compilation error.
The text was updated successfully, but these errors were encountered: