Boost C++ Libraries: Ticket #2468: compile error with g++ -Wundef -Wall: BOOST_DYNAMIC_BITSET_GNUC_VERSION_WORKAROUND_GUARD https://svn.boost.org/trac10/ticket/2468 <p> /home/andyc/work/tiger/1/include/ppc_BOS/boost/dynamic_bitset/config.hpp:39:1: error: "BOOST_DYNAMIC_BITSET_GNUC_VERSION_WORKAROUND_GUARD" is not defined </p> <p> The following patch fixes it: </p> <h5 class="section" id="boostdynamic_bitsetconfig.hpp1.1vsedited">boost/dynamic_bitset/config.hpp 1.1 vs edited</h5> <p> --- 1.1/boost/dynamic_bitset/config.hpp 2008-10-30 16:15:01 +00:00 +++ edited/boost/dynamic_bitset/config.hpp 2008-11-03 16:04:45 +00:00 @@ -29,6 +29,12 @@ </p> <blockquote> <p> #define BOOST_DYNAMIC_BITSET_GNUC_VERSION ( <span class="underline">GNUC</span> * 100 * 100 \ </p> <blockquote> <p> + <span class="underline">GNUC_MINOR</span> * 100) </p> </blockquote> </blockquote> <p> +#ifndef BOOST_DYNAMIC_BITSET_GNUC_VERSION +#define BOOST_DYNAMIC_BITSET_GNUC_VERSION_WORKAROUND_GUARD 1 +#else +#define BOOST_DYNAMIC_BITSET_GNUC_VERSION_WORKAROUND_GUARD 0 +#endif + </p> <blockquote> <p> <em> no-op function to workaround gcc bug c++/8419 </em> namespace boost { namespace detail { </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2468 Trac 1.4.3 Marshall Clow Mon, 03 Nov 2008 20:04:28 GMT component changed; owner set https://svn.boost.org/trac10/ticket/2468#comment:1 https://svn.boost.org/trac10/ticket/2468#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Gennaro Prota</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">dynamic_bitset</span> </li> </ul> Ticket Gennaro Prota Tue, 04 Nov 2008 16:21:16 GMT owner, component changed; cc set https://svn.boost.org/trac10/ticket/2468#comment:2 https://svn.boost.org/trac10/ticket/2468#comment:2 <ul> <li><strong>cc</strong> <span class="trac-author">gennaro.prota@…</span> added </li> <li><strong>owner</strong> changed from <span class="trac-author">Gennaro Prota</span> to <span class="trac-author">John Maddock</span> </li> <li><strong>component</strong> <span class="trac-field-old">dynamic_bitset</span> → <span class="trac-field-new">config</span> </li> </ul> <p> That's because of some "clever" changes done in detail/workaround.hpp. </p> <p> If the argument has to be a single token then that should be documented (though the parameter name seems a hint in that regard). Anyhow, as far as dynamic_bitset is concerned, I'll get simply rid of BOOST_WORKAROUND(). Please, do not apply the attached patch because it is completely broken. </p> <p> I've also changed the Component property to 'config', which is the closest thing I could find (and is maintained by the person who did the changes in detail/workaround.hpp). </p> Ticket John Maddock Tue, 23 Dec 2008 11:59:08 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2468#comment:3 https://svn.boost.org/trac10/ticket/2468#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">wontfix</span> </li> </ul> <p> Gennaro, </p> <p> I'm closing this down, because there are no changes we can actually make inside BOOST_WORKAROUND that would fix this. The 'clever' changes you mention were actually discussed at some length on the developer list and were chosen to make the best of a bad job (without them you get even more spurious warnings from gcc). </p> <p> Please file a new issue if there's a general issue with BOOST_WORAROUND. </p> <p> Thanks, John Maddock. </p> Ticket