Re: [Boost-bugs] [Boost C++ Libraries] #6416: Use attribute names with underscores for GCC

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6416: Use attribute names with underscores for GCC
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-01-20 16:23:40


#6416: Use attribute names with underscores for GCC
-------------------------------------------------+--------------------------
  Reporter: Petr Machata <pmachata@…> | Owner: eric_niebler
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: accumulator
   Version: Boost 1.48.0 | Severity: Problem
Resolution: invalid | Keywords:
-------------------------------------------------+--------------------------

Comment (by Petr Machata <pmachata@…>):

 Curiously, no, I can't, it doesn't seem to be documented, but it's been
 supported since "forever". It's used internally by stdlibc++, and boost
 even uses this syntax in a couple places (move, type traits). With GCC
 3.3, which is the oldest that I have around, I'm getting this:

 {{{
   __attribute__ ((__noinline__)) int ble() { return 10; } // passes
 quietly
   __attribute__ ((__sdkfljlk__)) int ble2() { return 10; } // gives
 warning
 }}}

 (Hopefully I typed this correctly, the machine that I tested this on is
 not networked.)

 The code in boost is not incorrect, it just lends itself easier to user-
 defined macros. The underscore syntax is supported by GCC to remedy this.
 Please consider applying the patch.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6416#comment:3>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:08 UTC