public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/31678] New: invalid C99 code accepted with warning
@ 2007-04-23 23:39 sabre at nondot dot org
2007-04-23 23:46 ` [Bug c/31678] " pinskia at gcc dot gnu dot org
2007-04-24 0:15 ` sabre at nondot dot org
0 siblings, 2 replies; 3+ messages in thread
From: sabre at nondot dot org @ 2007-04-23 23:39 UTC (permalink / raw)
To: gcc-bugs
int test(int* A, int B) { return A < B; }
$ gcc t.c -fsyntax-only -pedantic -ansi -std=c99
t.c: In function 'test':
t.c:3: warning: comparison between pointer and integer
According to C99 6.5.8p2, this should be rejected.
-Chris
--
Summary: invalid C99 code accepted with warning
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: sabre at nondot dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31678
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c/31678] invalid C99 code accepted with warning
2007-04-23 23:39 [Bug c/31678] New: invalid C99 code accepted with warning sabre at nondot dot org
@ 2007-04-23 23:46 ` pinskia at gcc dot gnu dot org
2007-04-24 0:15 ` sabre at nondot dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-04-23 23:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-04-24 00:46 -------
You have to use -pedantic-errors to get the error.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31678
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c/31678] invalid C99 code accepted with warning
2007-04-23 23:39 [Bug c/31678] New: invalid C99 code accepted with warning sabre at nondot dot org
2007-04-23 23:46 ` [Bug c/31678] " pinskia at gcc dot gnu dot org
@ 2007-04-24 0:15 ` sabre at nondot dot org
1 sibling, 0 replies; 3+ messages in thread
From: sabre at nondot dot org @ 2007-04-24 0:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from sabre at nondot dot org 2007-04-24 01:14 -------
Doh, right, thanks! :)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31678
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-04-24 0:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-23 23:39 [Bug c/31678] New: invalid C99 code accepted with warning sabre at nondot dot org
2007-04-23 23:46 ` [Bug c/31678] " pinskia at gcc dot gnu dot org
2007-04-24 0:15 ` sabre at nondot 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).