C++ Logo

sg10

Advanced search

[SG10] __has_cpp_attribute grammar

From: Aaron Ballman <aaron_at_[hidden]>
Date: Mon, 18 Aug 2014 19:25:27 -0400
After today's teleconference, I noticed what I believe is a defect in
the grammar for __has_cpp_attribute.

has-attribute-expression:
  __has_cpp_attribute ( attribute-scoped-token )

I believe attribute-scoped-token isn't what we want; this production
would only be useful for vendor-specific attributes (since
attribute-scoped-token is attribute-namespace :: identifier). This
would be problematic for our examples of
__has_cpp_attribute(deprecated). ;-)

I think the correct production should be:

has-attribute-expression:
  __has_cpp_attribute ( attribute-token )

Thoughts?

~Aaron

Received on 2014-08-19 01:25:28