Boost C++ Libraries: Ticket #7479: Compiles fails with compilers supporting constexpr fails if the standard library doesn't provides the constexpr interface https://svn.boost.org/trac10/ticket/7479 <pre class="wiki">qcc.compile.c++ D:\boostBuild_QCC_1_52_0_beta1\boost\bin.v2\libs\chrono\build\qcc\release\link-static\target-os-qnxnto\threadapi-pthread\threading-multi\chrono.o In file included from ./boost/chrono/chrono.hpp:11:0, from ./boost/chrono/detail/inlined/chrono.hpp:13, from libs\chrono\src\chrono.cpp:14: ./boost/chrono/duration.hpp: In static member function 'static constexpr float boost::chrono::detail::chrono_numeric_limits&lt;float, true&gt;::lowest()': ./boost/chrono/duration.hpp:355:56: error: call to non-constexpr function 'static std::numeric_limits&lt;float&gt;::_Ty std::numeric_limits&lt;float&gt;::max()' ./boost/chrono/duration.hpp: In static member function 'static constexpr double boost::chrono::detail::chrono_numeric_limits&lt;double, true&gt;::lowest()': ./boost/chrono/duration.hpp:363:57: error: call to non-constexpr function 'static std::numeric_limits&lt;double&gt;::_Ty std::numeric_limits&lt;double&gt;::max()' ./boost/chrono/duration.hpp: In static member function 'static constexpr long double boost::chrono::detail::chrono_numeric_limits&lt;long double, true&gt;::lowest()': ./boost/chrono/duration.hpp:371:61: error: call to non-constexpr function 'static std::numeric_limits&lt;long double&gt;::_Ty std::numeric_limits&lt;long double&gt;::max()' cc: d:/qnxsdk/qnxsdk6.5-001/host/win32/x86/usr/lib/gcc/i486-pc-nto-qnx6.5.0/4.7.1/cc1plus caught signal 1 "QCC" -Wc,-ftemplate-depth-128 -DFD_SETSIZE=2048 -march=k8-sse3 -mtune=k8-sse3 -mmmx -msse3 -mfpmath=sse -mno-3dnow -mstackrealign -Wc,-fPIC,-std=c++0x,-std=gnu++0x -O3 -Wc,-finline-functions -Wc,-Wno-inline -Wc,-Wall -DBOOST_ALL_NO_LIB=1 -DBOOST_All_STATIC_LINK=1 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_SYSTEM_STATIC_LINK=1 -DNDEBUG -I"." -c -o "D:\boostBuild_QCC_1_52_0_beta1\boost\bin.v2\libs\chrono\build\qcc\release\link-static\target-os-qnxnto\threadapi-pthread\threading-multi\chrono.o" "libs\chrono\src\chrono.cpp" ...failed qcc.compile.c++ D:\boostBuild_QCC_1_52_0_beta1\boost\bin.v2\libs\chrono\build\qcc\release\link-static\target-os-qnxnto\threadapi-pthread\threading-multi\chrono.o... common.copy D:\boost\include\boost\checked_delete.hpp D:\boost_1_52_0_beta1\boost\checked_delete.hpp 1 file(s) copied. common.copy D:\boost\include\boost\chrono.hpp D:\boost_1_52_0_beta1\boost\chrono.hpp 1 file(s) copied. qcc.compile.c++ D:\boostBuild_QCC_1_52_0_beta1\boost\bin.v2\libs\chrono\build\qcc\release\link-static\target-os-qnxnto\threadapi-pthread\threading-multi\process_cpu_clocks.o In file included from ./boost/chrono/process_cpu_clocks.hpp:18:0, from ./boost/chrono/detail/inlined/process_cpu_clocks.hpp:19, from libs\chrono\src\process_cpu_clocks.cpp:17: ./boost/chrono/duration.hpp: In static member function 'static constexpr float boost::chrono::detail::chrono_numeric_limits&lt;float, true&gt;::lowest()': ./boost/chrono/duration.hpp:355:56: error: call to non-constexpr function 'static std::numeric_limits&lt;float&gt;::_Ty std::numeric_limits&lt;float&gt;::max()' ./boost/chrono/duration.hpp: In static member function 'static constexpr double boost::chrono::detail::chrono_numeric_limits&lt;double, true&gt;::lowest()': ./boost/chrono/duration.hpp:363:57: error: call to non-constexpr function 'static std::numeric_limits&lt;double&gt;::_Ty std::numeric_limits&lt;double&gt;::max()' ./boost/chrono/duration.hpp: In static member function 'static constexpr long double boost::chrono::detail::chrono_numeric_limits&lt;long double, true&gt;::lowest()': ./boost/chrono/duration.hpp:371:61: error: call to non-constexpr function 'static std::numeric_limits&lt;long double&gt;::_Ty std::numeric_limits&lt;long double&gt;::max()' cc: d:/qnxsdk/qnxsdk6.5-001/host/win32/x86/usr/lib/gcc/i486-pc-nto-qnx6.5.0/4.7.1/cc1plus caught signal 1 </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7479 Trac 1.4.3 viboes Sun, 07 Oct 2012 13:41:47 GMT attachment set https://svn.boost.org/trac10/ticket/7479 https://svn.boost.org/trac10/ticket/7479 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">7479.patch</span> </li> </ul> Ticket viboes Sun, 07 Oct 2012 13:42:07 GMT status changed https://svn.boost.org/trac10/ticket/7479#comment:1 https://svn.boost.org/trac10/ticket/7479#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket viboes Sun, 07 Oct 2012 14:11:42 GMT <link>https://svn.boost.org/trac10/ticket/7479#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7479#comment:2</guid> <description> <p> Committed revision <a class="changeset" href="https://svn.boost.org/trac10/changeset/80897" title="Chrono: try to fix 7479">[80897]</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Tue, 09 Oct 2012 23:18:02 GMT</pubDate> <title>status, milestone changed; resolution set https://svn.boost.org/trac10/ticket/7479#comment:3 https://svn.boost.org/trac10/ticket/7479#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.52.0</span> </li> </ul> <p> Merged <a class="changeset" href="https://svn.boost.org/trac10/changeset/80921" title="Chrono: merge 80897">[80921]</a> </p> Ticket anonymous Fri, 28 Mar 2014 02:21:53 GMT <link>https://svn.boost.org/trac10/ticket/7479#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7479#comment:4</guid> <description> <p> It happens on my system. GNU 4.7.3, boost 1.55. </p> <p> In file included from /other/boost/boost/chrono/time_point.hpp:33:0, </p> <blockquote> <p> from /other/boost/boost/thread/lock_types.hpp:22, from /other/boost/boost/thread/pthread/recursive_mutex.hpp:13, from /other/boost/boost/thread/recursive_mutex.hpp:16, from /src/include/File1.hpp:14, from /src/include/File2.hpp:13, from /src/include/File3.hpp:12, from /src/cpp/File3.cpp:8: </p> </blockquote> <p> /other/boost/boost/chrono/duration.hpp: In static member function 'static constexpr float boost::chrono::detail::chrono_numeric_limits&lt;float, true&gt;::lowest()': /other/boost/boost/chrono/duration.hpp:355:56: error: call to non-constexpr function 'static std::numeric_limits&lt;float&gt;::_Ty std::numeric_limits&lt;float&gt;::max()' /other/boost/boost/chrono/duration.hpp: In static member function 'static constexpr double boost::chrono::detail::chrono_numeric_limits&lt;double, true&gt;::lowest()': /other/boost/boost/chrono/duration.hpp:363:57: error: call to non-constexpr function 'static std::numeric_limits&lt;double&gt;::_Ty std::numeric_limits&lt;double&gt;::max()' /other/boost/boost/chrono/duration.hpp: In static member function 'static constexpr long double boost::chrono::detail::chrono_numeric_limits&lt;long double, true&gt;::lowest()': /other/boost/boost/chrono/duration.hpp:371:61: error: call to non-constexpr function 'static std::numeric_limits&lt;long double&gt;::_Ty std::numeric_limits&lt;long double&gt;::max()' </p> </description> <category>Ticket</category> </item> </channel> </rss>