public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/99304] New: typo in diagnostic: refernced
@ 2021-02-27 12:54 roland.illig at gmx dot de
  2021-02-27 12:56 ` [Bug c/99304] " redi at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: roland.illig at gmx dot de @ 2021-02-27 12:54 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 99304
           Summary: typo in diagnostic: refernced
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: roland.illig at gmx dot de
  Target Milestone: ---

gcc/c-family/c-attribs.c says:
> "refernced symbol declared here"

That should be "referenced" instead.
A test to trigger this diagnostic is:

~~~c
/* { dg-do compile } */
/* { dg-options "-O2 -Wall" } */

void invalid_free(/* no prototype */); /* { dg-message "referenced" } */

void *invalid_malloc(void) __attribute__((
  malloc(invalid_free) /* { dg-warning "must take a pointer" } */
));
~~~

A test to trigger the closely related diagnostic is:

~~~c
/* { dg-do compile } */
/* { dg-options "-O2 -Wall" } */

void invalid_free(int); /* { dg-message "referenced" } */

void *invalid_malloc(void) __attribute__((
  malloc(invalid_free) /* { dg-warning "must take a pointer" } */
));
~~~

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-02-28 11:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-27 12:54 [Bug c/99304] New: typo in diagnostic: refernced roland.illig at gmx dot de
2021-02-27 12:56 ` [Bug c/99304] " redi at gcc dot gnu.org
2021-02-27 12:57 ` [Bug c/99304] [11 Regression] " redi at gcc dot gnu.org
2021-02-27 14:50 ` jakub at gcc dot gnu.org
2021-02-28 10:13 ` cvs-commit at gcc dot gnu.org
2021-02-28 10:19 ` jakub at gcc dot gnu.org
2021-02-28 11:41 ` roland.illig at gmx dot de

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).