/* Warn if the attribute ATTRIBUTE appears more than once in the
attribute-list ATTRIBUTES. This used to be enforced for certain
- attributes, but the restriction was removed in P2156. Note that
- carries_dependency ([dcl.attr.depend]) isn't implemented yet in GCC.
+ attributes, but the restriction was removed in P2156.
LOC is the location of ATTRIBUTE. Returns true if ATTRIBUTE was not
found in ATTRIBUTES. */
{
static auto alist = { "noreturn", "deprecated", "nodiscard", "maybe_unused",
"likely", "unlikely", "fallthrough",
- "no_unique_address" };
+ "no_unique_address", "carries_dependency" };
if (attributes)
for (const auto &a : alist)
if (is_attribute_p (a, get_attribute_name (attribute))