https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87964

            Bug ID: 87964
           Summary: c-attribs.c:3965: possible cut'n'paste error ?
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Source code is

          else if (!strcmp ("const", namestr))
            {
              if (expr && DECL_P (expr))
                found_match = TREE_READONLY (expr);
            }
          else if (!strcmp ("const", namestr))
            {
              if (expr && DECL_P (expr))
                found_match = DECL_PURE_P (expr);
            }

svn blame says

265980     msebor         else if (!strcmp ("const", namestr))
265980     msebor           {
265980     msebor             if (expr && DECL_P (expr))
265980     msebor               found_match = TREE_READONLY (expr);
265980     msebor           }
265980     msebor         else if (!strcmp ("const", namestr))
265980     msebor           {
265980     msebor             if (expr && DECL_P (expr))
265980     msebor               found_match = DECL_PURE_P (expr);
265980     msebor           }

Reply via email to