Opened 9 years ago

Closed 9 years ago

#8849 closed Bugs (fixed)

Use attribute names with underscores for GCC

Reported by: pmachata@… Owned by: John Maddock
Milestone: To Be Determined Component: config
Version: Boost 1.54.0 Severity: Problem
Keywords: Cc:

Description

I opened a bunch of bugs like that some time ago for various Boost components, but apparently forgot about this one. The problem is in using GCC __attribute__ syntax, where the attribute itself is not in reserved namespace. GCC supports (at least since 3.3 per my testing) attributes in two forms: plain X, and reserved __X__. They don't differ in semantics, but the latter is unlikely to be overridden by user-defined macros (or if it is, it's user's fault).

Attachments (1)

boost-1.54.0-config-attributes.patch (1.2 KB ) - added by pmachata@… 9 years ago.
A fix

Download all attachments as: .zip

Change History (2)

by pmachata@…, 9 years ago

A fix

comment:1 by John Maddock, 9 years ago

Resolution: fixed
Status: newclosed

(In [85136]) Use underscores in attribute names. Fixes #8849.

Note: See TracTickets for help on using tickets.