public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/29467] -ansi -pedantic accepts _Bool without diagnostic
[not found] <bug-29467-4@http.gcc.gnu.org/bugzilla/>
@ 2012-04-18 16:24 ` manu at gcc dot gnu.org
2012-04-23 21:23 ` joseph at codesourcery dot com
` (4 subsequent siblings)
5 siblings, 0 replies; 9+ messages in thread
From: manu at gcc dot gnu.org @ 2012-04-18 16:24 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29467
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2012-04-18
CC| |manu at gcc dot gnu.org
Ever Confirmed|0 |1
--- Comment #3 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2012-04-18 16:23:10 UTC ---
So? Is this a bug or not?
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/29467] -ansi -pedantic accepts _Bool without diagnostic
[not found] <bug-29467-4@http.gcc.gnu.org/bugzilla/>
2012-04-18 16:24 ` [Bug c/29467] -ansi -pedantic accepts _Bool without diagnostic manu at gcc dot gnu.org
@ 2012-04-23 21:23 ` joseph at codesourcery dot com
2012-04-23 21:48 ` manu at gcc dot gnu.org
` (3 subsequent siblings)
5 siblings, 0 replies; 9+ messages in thread
From: joseph at codesourcery dot com @ 2012-04-23 21:23 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29467
--- Comment #4 from joseph at codesourcery dot com <joseph at codesourcery dot com> 2012-04-23 21:22:38 UTC ---
I'd say it's a quality-of-implementation issue, but it probably would be
best to diagnose this. I've added such diagnostics for C11 keywords such
as _Noreturn and _Static_assert outside C11 mode when adding support for
those keywords, for example.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/29467] -ansi -pedantic accepts _Bool without diagnostic
[not found] <bug-29467-4@http.gcc.gnu.org/bugzilla/>
2012-04-18 16:24 ` [Bug c/29467] -ansi -pedantic accepts _Bool without diagnostic manu at gcc dot gnu.org
2012-04-23 21:23 ` joseph at codesourcery dot com
@ 2012-04-23 21:48 ` manu at gcc dot gnu.org
2014-04-29 21:25 ` mpolacek at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 9+ messages in thread
From: manu at gcc dot gnu.org @ 2012-04-23 21:48 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29467
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
--- Comment #5 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2012-04-23 21:47:30 UTC ---
So confirmed.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/29467] -ansi -pedantic accepts _Bool without diagnostic
[not found] <bug-29467-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2012-04-23 21:48 ` manu at gcc dot gnu.org
@ 2014-04-29 21:25 ` mpolacek at gcc dot gnu.org
2014-05-01 7:21 ` mpolacek at gcc dot gnu.org
2014-05-01 7:22 ` mpolacek at gcc dot gnu.org
5 siblings, 0 replies; 9+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2014-04-29 21:25 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29467
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |mpolacek at gcc dot gnu.org
Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org
--- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Potential fix: http://gcc.gnu.org/ml/gcc-patches/2014-04/msg02015.html
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/29467] -ansi -pedantic accepts _Bool without diagnostic
[not found] <bug-29467-4@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2014-04-29 21:25 ` mpolacek at gcc dot gnu.org
@ 2014-05-01 7:21 ` mpolacek at gcc dot gnu.org
2014-05-01 7:22 ` mpolacek at gcc dot gnu.org
5 siblings, 0 replies; 9+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2014-05-01 7:21 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29467
--- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Thu May 1 07:21:07 2014
New Revision: 209971
URL: http://gcc.gnu.org/viewcvs?rev=209971&root=gcc&view=rev
Log:
PR c/29467
* c-decl.c (declspecs_add_type): Pedwarn if boolean types are used
in C89 mode.
* gcc.dg/pr29467.c: New test.
* gcc.dg/declspec-13.c: Renumber some dg-warnings. Add dg-warnings
about boolean types.
* gfortran.dg/bind_c_usage_24_c.c: Include <stdbool.h>. Change _Bool
to bool.
* gfortran.dg/c_f_pointer_logical_driver.c: Change _Bool to bool.
Added:
trunk/gcc/testsuite/gcc.dg/pr29467.c
Modified:
trunk/gcc/c/ChangeLog
trunk/gcc/c/c-decl.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gcc.dg/declspec-13.c
trunk/gcc/testsuite/gfortran.dg/bind_c_usage_24_c.c
trunk/gcc/testsuite/gfortran.dg/c_f_pointer_logical_driver.c
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/29467] -ansi -pedantic accepts _Bool without diagnostic
[not found] <bug-29467-4@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2014-05-01 7:21 ` mpolacek at gcc dot gnu.org
@ 2014-05-01 7:22 ` mpolacek at gcc dot gnu.org
5 siblings, 0 replies; 9+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2014-05-01 7:22 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29467
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #8 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/29467] -ansi -pedantic accepts _Bool without diagnostic
2006-10-14 11:34 [Bug c/29467] New: " neil at gcc dot gnu dot org
2006-10-14 15:29 ` [Bug c/29467] " pinskia at gcc dot gnu dot org
@ 2006-10-14 16:20 ` neil at daikokuya dot co dot uk
1 sibling, 0 replies; 9+ messages in thread
From: neil at daikokuya dot co dot uk @ 2006-10-14 16:20 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from neil at daikokuya dot co dot uk 2006-10-14 16:19 -------
Subject: Re: -ansi -pedantic accepts _Bool without diagnostic
pinskia at gcc dot gnu dot org wrote:-
>
>
> ------- Comment #1 from pinskia at gcc dot gnu dot org 2006-10-14 15:29 -------
> Hmm, isn't _Bool in the implemenation keyword space anyways?
It is, so is _Complex, and that is diagnosed. I'm not saying it's
a conformance problem, just that it's probably a bug.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29467
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Bug c/29467] -ansi -pedantic accepts _Bool without diagnostic
2006-10-14 15:29 ` [Bug c/29467] " pinskia at gcc dot gnu dot org
@ 2006-10-14 16:19 ` Neil Booth
0 siblings, 0 replies; 9+ messages in thread
From: Neil Booth @ 2006-10-14 16:19 UTC (permalink / raw)
To: pinskia at gcc dot gnu dot org; +Cc: gcc-bugs
pinskia at gcc dot gnu dot org wrote:-
>
>
> ------- Comment #1 from pinskia at gcc dot gnu dot org 2006-10-14 15:29 -------
> Hmm, isn't _Bool in the implemenation keyword space anyways?
It is, so is _Complex, and that is diagnosed. I'm not saying it's
a conformance problem, just that it's probably a bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/29467] -ansi -pedantic accepts _Bool without diagnostic
2006-10-14 11:34 [Bug c/29467] New: " neil at gcc dot gnu dot org
@ 2006-10-14 15:29 ` pinskia at gcc dot gnu dot org
2006-10-14 16:19 ` Neil Booth
2006-10-14 16:20 ` neil at daikokuya dot co dot uk
1 sibling, 1 reply; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-10-14 15:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-10-14 15:29 -------
Hmm, isn't _Bool in the implemenation keyword space anyways?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29467
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2014-05-01 7:22 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-29467-4@http.gcc.gnu.org/bugzilla/>
2012-04-18 16:24 ` [Bug c/29467] -ansi -pedantic accepts _Bool without diagnostic manu at gcc dot gnu.org
2012-04-23 21:23 ` joseph at codesourcery dot com
2012-04-23 21:48 ` manu at gcc dot gnu.org
2014-04-29 21:25 ` mpolacek at gcc dot gnu.org
2014-05-01 7:21 ` mpolacek at gcc dot gnu.org
2014-05-01 7:22 ` mpolacek at gcc dot gnu.org
2006-10-14 11:34 [Bug c/29467] New: " neil at gcc dot gnu dot org
2006-10-14 15:29 ` [Bug c/29467] " pinskia at gcc dot gnu dot org
2006-10-14 16:19 ` Neil Booth
2006-10-14 16:20 ` neil at daikokuya dot co dot uk
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).