]> gcc.gnu.org Git - gcc.git/blobdiff - gcc/cp/parser.cc
c++: Minimal handling of carries_dependency attribute
[gcc.git] / gcc / cp / parser.cc
index 9523f73d9a308ff9cdbccd0e2814e6ab0d03810a..e4021835ed58034334dc5884db989d481a6fe3c9 100644 (file)
@@ -29239,8 +29239,7 @@ cp_parser_std_attribute (cp_parser *parser, tree attr_ns)
 
 /* 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.  */
 
@@ -29249,7 +29248,7 @@ cp_parser_check_std_attribute (location_t loc, tree attributes, tree attribute)
 {
   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))
This page took 0.070104 seconds and 5 git commands to generate.