Boost C++ Libraries: Ticket #6406: Use attribute names with underscores for GCC https://svn.boost.org/trac10/ticket/6406 <p> ... which should prevent accidental interactions between user-defined macros and boost internals. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6406 Trac 1.4.3 Petr Machata <pmachata@…> Mon, 16 Jan 2012 22:54:18 GMT attachment set https://svn.boost.org/trac10/ticket/6406 https://svn.boost.org/trac10/ticket/6406 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost-xpressive.patch</span> </li> </ul> Ticket Petr Machata <pmachata@…> Mon, 16 Jan 2012 22:56:20 GMT component changed; owner set https://svn.boost.org/trac10/ticket/6406#comment:1 https://svn.boost.org/trac10/ticket/6406#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Eric Niebler</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">xpressive</span> </li> </ul> Ticket Eric Niebler Mon, 16 Jan 2012 23:17:51 GMT <link>https://svn.boost.org/trac10/ticket/6406#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6406#comment:2</guid> <description> <p> Can you point to official gcc documentation that show that this is a supported and equivalent syntax? All I see is here: <a class="ext-link" href="http://gcc.gnu.org/onlinedocs/gcc/Attribute-Syntax.html"><span class="icon">​</span>http://gcc.gnu.org/onlinedocs/gcc/Attribute-Syntax.html</a>, which seems to indicate that the original code is the correct form. And if the form you suggested is allowed, then is it only a recent addition? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Eric Niebler</dc:creator> <pubDate>Tue, 17 Jan 2012 16:06:45 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/6406#comment:3 https://svn.boost.org/trac10/ticket/6406#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">invalid</span> </li> </ul> <p> Resolving as invalid for now. If you can show that this has been supported syntax for a long time, feel free to reopen. </p> Ticket Petr Machata <pmachata@…> Fri, 20 Jan 2012 16:26:33 GMT <link>https://svn.boost.org/trac10/ticket/6406#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6406#comment:4</guid> <description> <p> I updated the ticket <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6416" title="#6416: Bugs: Use attribute names with underscores for GCC (closed: fixed)">#6416</a> with some evidence that this is a long-supported feature. </p> </description> <category>Ticket</category> </item> <item> <author>Petr Machata <pmachata@…></author> <pubDate>Fri, 27 Jan 2012 15:38:08 GMT</pubDate> <title>status changed; resolution deleted https://svn.boost.org/trac10/ticket/6406#comment:5 https://svn.boost.org/trac10/ticket/6406#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">invalid</span> </li> </ul> Ticket Petr Machata <pmachata@…> Fri, 27 Jan 2012 15:40:02 GMT <link>https://svn.boost.org/trac10/ticket/6406#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6406#comment:6</guid> <description> <p> The double underscore feature is described here: <a class="ext-link" href="http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html"><span class="icon">​</span>http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html</a> and it has worked "forever" (I tried GCC 3.3, but reportedly it's been supported all the way back to GCC 2.95.7). </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Eric Niebler</dc:creator> <pubDate>Sat, 28 Jan 2012 20:08:37 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/6406#comment:7 https://svn.boost.org/trac10/ticket/6406#comment:7 <ul> <li><strong>status</strong> <span class="trac-field-old">reopened</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/76766" title="use underscores in gcc attribute names, fixes #6406">[76766]</a>) use underscores in gcc attribute names, fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6406" title="#6406: Bugs: Use attribute names with underscores for GCC (closed: fixed)">#6406</a> </p> Ticket Denis Arnaud Thu, 19 Jul 2012 20:25:23 GMT status, version, milestone changed; resolution deleted https://svn.boost.org/trac10/ticket/6406#comment:8 https://svn.boost.org/trac10/ticket/6406#comment:8 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>version</strong> <span class="trac-field-old">Boost 1.48.0</span> → <span class="trac-field-new">Boost 1.50.0</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">fixed</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.51.0</span> </li> </ul> <p> The bug has been fixed on trunk (<a class="ext-link" href="http://svn.boost.org/svn/boost/trunk/boost/xpressive/detail/core/adaptor.hpp"><span class="icon">​</span>http://svn.boost.org/svn/boost/trunk/boost/xpressive/detail/core/adaptor.hpp</a>), but not on the release branch (<a class="ext-link" href="http://svn.boost.org/svn/boost/branches/release/boost/xpressive/detail/core/adaptor.hpp"><span class="icon">​</span>http://svn.boost.org/svn/boost/branches/release/boost/xpressive/detail/core/adaptor.hpp</a>)... </p> <p> Could you integrate the fix in the release branch as well? </p> Ticket Eric Niebler Fri, 20 Jul 2012 05:57:09 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6406#comment:9 https://svn.boost.org/trac10/ticket/6406#comment:9 <ul> <li><strong>status</strong> <span class="trac-field-old">reopened</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Oops. Merged to release in <a class="changeset" href="https://svn.boost.org/trac10/changeset/79614" title="merge [76766] from trunk to release">[79614]</a>. Thanks for spotting that. </p> Ticket