public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/95630] New: rejects-valid on comparison of pointers to complete vs incomplete types in C11 mode
@ 2020-06-10 22:09 richard-gccbugzilla at metafoo dot co.uk
  2020-11-23 23:29 ` [Bug c/95630] " cvs-commit at gcc dot gnu.org
  2020-11-23 23:32 ` jsm28 at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: richard-gccbugzilla at metafoo dot co.uk @ 2020-06-10 22:09 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 95630
           Summary: rejects-valid on comparison of pointers to complete vs
                    incomplete types in C11 mode
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: richard-gccbugzilla at metafoo dot co.uk
  Target Milestone: ---

Testcase:

int f(int (*p)[], int (*q)[3]) { return p < q; }

This is a constraint violation in C99, but the relevant rule was removed in
C11. GCC still rejects in -std=c11 mode under -pedantic-errors.

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

end of thread, other threads:[~2020-11-23 23:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-10 22:09 [Bug c/95630] New: rejects-valid on comparison of pointers to complete vs incomplete types in C11 mode richard-gccbugzilla at metafoo dot co.uk
2020-11-23 23:29 ` [Bug c/95630] " cvs-commit at gcc dot gnu.org
2020-11-23 23:32 ` jsm28 at gcc dot gnu.org

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).