public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/19755] New: -Wmissing-braces doesn't warn anymore
@ 2005-02-02 14:13 oliverst at online dot de
2005-02-02 15:08 ` [Bug c++/19755] [3.3/3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: oliverst at online dot de @ 2005-02-02 14:13 UTC (permalink / raw)
To: gcc-bugs
If you compile the example from the GCC manual entry for "-Wmissing-braces"
as C++, you aren't getting any warnings about this. If you compile it a C code
everything warns fine.
I tried it with MinGW32 GCC 3.3.3, 3.4.2. I do get the warnings with a linux GCC
3.2:
test.cpp:5: warning: aggregate has a partly bracketed initializer
test.cpp:5: warning: aggregate has a partly bracketed initializer
Specs of the linux GCC:
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --host=i386-redhat-linux --with-system-zlib --enable-__cxa_atexit
Thread model: posix
gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
The MinGW ones are the binaries distributed on www.mingw.net
--
Summary: -Wmissing-braces doesn't warn anymore
Product: gcc
Version: 3.4.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: oliverst at online dot de
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19755
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/19755] [3.3/3.4/4.0 Regression] -Wmissing-braces doesn't warn anymore
2005-02-02 14:13 [Bug c++/19755] New: -Wmissing-braces doesn't warn anymore oliverst at online dot de
@ 2005-02-02 15:08 ` pinskia at gcc dot gnu dot org
2005-02-10 14:02 ` mmitchel at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-02 15:08 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-02 15:08 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |diagnostic
Last reconfirmed|0000-00-00 00:00:00 |2005-02-02 15:08:43
date| |
Summary|-Wmissing-braces doesn't |[3.3/3.4/4.0 Regression] -
|warn anymore |Wmissing-braces doesn't warn
| |anymore
Target Milestone|--- |3.4.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19755
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/19755] [3.3/3.4/4.0 Regression] -Wmissing-braces doesn't warn anymore
2005-02-02 14:13 [Bug c++/19755] New: -Wmissing-braces doesn't warn anymore oliverst at online dot de
2005-02-02 15:08 ` [Bug c++/19755] [3.3/3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
@ 2005-02-10 14:02 ` mmitchel at gcc dot gnu dot org
2005-02-11 21:49 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-02-10 14:02 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |mark at codesourcery dot com
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19755
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/19755] [3.3/3.4/4.0 Regression] -Wmissing-braces doesn't warn anymore
2005-02-02 14:13 [Bug c++/19755] New: -Wmissing-braces doesn't warn anymore oliverst at online dot de
2005-02-02 15:08 ` [Bug c++/19755] [3.3/3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
2005-02-10 14:02 ` mmitchel at gcc dot gnu dot org
@ 2005-02-11 21:49 ` cvs-commit at gcc dot gnu dot org
2005-02-11 21:50 ` [Bug c++/19755] [3.3 " mmitchel at gcc dot gnu dot org
2005-02-11 21:50 ` [Bug c++/19755] [3.3/3.4/4.0 " cvs-commit at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-02-11 21:49 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-02-11 17:15 -------
Subject: Bug 19755
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: mmitchel@gcc.gnu.org 2005-02-11 17:15:51
Modified files:
gcc/cp : ChangeLog decl.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/warn: Wbraces1.C
Log message:
PR c++/19755
* decl.c (reshape_init): Issue warnings about missing braces.
PR c++/19755
* g++.dg/warn/Wbraces1.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4622&r2=1.4623
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&r1=1.1361&r2=1.1362
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5016&r2=1.5017
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/warn/Wbraces1.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19755
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/19755] [3.3 Regression] -Wmissing-braces doesn't warn anymore
2005-02-02 14:13 [Bug c++/19755] New: -Wmissing-braces doesn't warn anymore oliverst at online dot de
` (2 preceding siblings ...)
2005-02-11 21:49 ` cvs-commit at gcc dot gnu dot org
@ 2005-02-11 21:50 ` mmitchel at gcc dot gnu dot org
2005-02-11 21:50 ` [Bug c++/19755] [3.3/3.4/4.0 " cvs-commit at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-02-11 21:50 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2005-02-11 17:22 -------
Fixed in GCC 3.4.4.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Summary|[3.3/3.4/4.0 Regression] - |[3.3 Regression] -Wmissing-
|Wmissing-braces doesn't warn|braces doesn't warn anymore
|anymore |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19755
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/19755] [3.3/3.4/4.0 Regression] -Wmissing-braces doesn't warn anymore
2005-02-02 14:13 [Bug c++/19755] New: -Wmissing-braces doesn't warn anymore oliverst at online dot de
` (3 preceding siblings ...)
2005-02-11 21:50 ` [Bug c++/19755] [3.3 " mmitchel at gcc dot gnu dot org
@ 2005-02-11 21:50 ` cvs-commit at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-02-11 21:50 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-02-11 17:20 -------
Subject: Bug 19755
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: mmitchel@gcc.gnu.org 2005-02-11 17:20:03
Modified files:
gcc/testsuite : ChangeLog
gcc/cp : ChangeLog decl.c
Added files:
gcc/testsuite/g++.dg/warn: Wbraces1.C
Log message:
PR c++/19755
* decl.c (reshape_init): Issue warnings about missing braces.
PR c++/19755
* g++.dg/warn/Wbraces1.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3389.2.359&r2=1.3389.2.360
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/warn/Wbraces1.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3892.2.197&r2=1.3892.2.198
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.1174.2.29&r2=1.1174.2.30
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19755
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-02-11 17:22 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-02 14:13 [Bug c++/19755] New: -Wmissing-braces doesn't warn anymore oliverst at online dot de
2005-02-02 15:08 ` [Bug c++/19755] [3.3/3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
2005-02-10 14:02 ` mmitchel at gcc dot gnu dot org
2005-02-11 21:49 ` cvs-commit at gcc dot gnu dot org
2005-02-11 21:50 ` [Bug c++/19755] [3.3 " mmitchel at gcc dot gnu dot org
2005-02-11 21:50 ` [Bug c++/19755] [3.3/3.4/4.0 " cvs-commit 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).