Boost C++ Libraries: Ticket #6411: Use attribute names with underscores for GCC https://svn.boost.org/trac10/ticket/6411 <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/6411 Trac 1.4.3 Petr Machata <pmachata@…> Mon, 16 Jan 2012 23:04:32 GMT attachment set https://svn.boost.org/trac10/ticket/6411 https://svn.boost.org/trac10/ticket/6411 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost-tr1.patch</span> </li> </ul> Ticket anonymous Fri, 20 Jan 2012 17:57:42 GMT <link>https://svn.boost.org/trac10/ticket/6411#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6411#comment:1</guid> <description> <p> Does that work? Note that the documented syntax does not use the extra underscores: <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>. Further if all lower case words like "aligned" are defined as macros, then typically the user will experience far more problems than just this issue? </p> </description> <category>Ticket</category> </item> <item> <author>Petr Machata <pmachata@…></author> <pubDate>Mon, 23 Jan 2012 13:41:01 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6411#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6411#comment:2</guid> <description> <p> Yes, it does. This same page also notes that "you may also specify attributes with `<span class="underline">' preceding and following each keyword" which I actually managed to miss twice, otherwise I'd just have linked that page right away. Luckily Michel Morin actually did notice: <a class="ext-link" href="http://lists.boost.org/Archives/boost/2012/01/189737.php"><span class="icon">​</span>http://lists.boost.org/Archives/boost/2012/01/189737.php</a> It is documented as far back as 2.95.3. </span></p> </description> <category>Ticket</category> </item> <item> <author>Petr Machata <pmachata@…></author> <pubDate>Mon, 23 Jan 2012 13:42:23 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6411#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6411#comment:3</guid> <description> <p> Darn, that wiki formatting is killing me. Imagine two underscores between ` and ', and the rest of the sentence not underlined ;) </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Sun, 29 Jan 2012 12:27:55 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/6411#comment:4 https://svn.boost.org/trac10/ticket/6411#comment:4 <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">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/76773" title="Use underscores in attribute names. Fixes #6411.">[76773]</a>) Use underscores in attribute names. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6411" title="#6411: Bugs: Use attribute names with underscores for GCC (closed: fixed)">#6411</a>. </p> Ticket