public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/22249] New: GCC does not reject an incompatible type declaration
@ 2005-06-30 13:20 neil at gcc dot gnu dot org
  2005-06-30 13:33 ` [Bug c/22249] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: neil at gcc dot gnu dot org @ 2005-06-30 13:20 UTC (permalink / raw)
  To: gcc-bugs

I don't believe the standard requires the following to be rejected, but as a QOI
issue I believe it should be.  The debatable point is whether you believe the
composite of the first two is specified by a function definition; if you do then
you must reject.  GCC rejects it if the order of the first two is switched.

void r(x) int (*x)[2]; {}
void r();
void r(int (*x)[3]);		/* Ideally rejected.  */

Flags are e.g. -Wall -std=c99 -pedantic

-- 
           Summary: GCC does not reject an incompatible type declaration
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: neil at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22249


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

* [Bug c/22249] GCC does not reject an incompatible type declaration
  2005-06-30 13:20 [Bug c/22249] New: GCC does not reject an incompatible type declaration neil at gcc dot gnu dot org
@ 2005-06-30 13:33 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-30 13:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-30 13:32 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |accepts-invalid
      Known to fail|                            |2.95 3.0.4 3.2.2 4.0.0 3.4.0
                   |                            |3.3.3
   Last reconfirmed|0000-00-00 00:00:00         |2005-06-30 13:32:43
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22249


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

end of thread, other threads:[~2005-06-30 13:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-30 13:20 [Bug c/22249] New: GCC does not reject an incompatible type declaration neil at gcc dot gnu dot org
2005-06-30 13:33 ` [Bug c/22249] " pinskia at gcc dot gnu dot 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).