public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/19565] New: g++ does not warn about overflow in conversion but gcc does
@ 2005-01-21 14:32 fm3 at os dot inf dot tu-dresden dot de
2005-01-21 14:38 ` [Bug c++/19565] " pinskia at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 11+ messages in thread
From: fm3 at os dot inf dot tu-dresden dot de @ 2005-01-21 14:32 UTC (permalink / raw)
To: gcc-bugs
g++ does not warn if there occurs an overflow in conversion. For instance, gcc
does not warn about
char a = 1024;
but gcc does.
--
Summary: g++ does not warn about overflow in conversion but gcc
does
Product: gcc
Version: 3.4.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: fm3 at os dot inf dot tu-dresden dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: i486-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19565
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/19565] g++ does not warn about overflow in conversion but gcc does
2005-01-21 14:32 [Bug c++/19565] New: g++ does not warn about overflow in conversion but gcc does fm3 at os dot inf dot tu-dresden dot de
@ 2005-01-21 14:38 ` pinskia at gcc dot gnu dot org
2005-01-21 20:27 ` [Bug c++/19565] [3.3/3.4/4.0 Regression] " belyshev at depni dot sinp dot msu dot ru
` (4 subsequent siblings)
5 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-21 14:38 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-21 14:38 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |diagnostic
Last reconfirmed|0000-00-00 00:00:00 |2005-01-21 14:38:01
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19565
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/19565] [3.3/3.4/4.0 Regression] g++ does not warn about overflow in conversion but gcc does
2005-01-21 14:32 [Bug c++/19565] New: g++ does not warn about overflow in conversion but gcc does fm3 at os dot inf dot tu-dresden dot de
2005-01-21 14:38 ` [Bug c++/19565] " pinskia at gcc dot gnu dot org
@ 2005-01-21 20:27 ` belyshev at depni dot sinp dot msu dot ru
2005-02-16 19:11 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 11+ messages in thread
From: belyshev at depni dot sinp dot msu dot ru @ 2005-01-21 20:27 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
GCC host triplet|i486-linux |
Known to fail| |3.0.4 3.2.3 3.3.6 3.4.4
| |4.0.0
Known to work| |2.95.4
Summary|g++ does not warn about |[3.3/3.4/4.0 Regression] g++
|overflow in conversion but |does not warn about overflow
|gcc does |in conversion but gcc does
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19565
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/19565] [3.3/3.4/4.0 Regression] g++ does not warn about overflow in conversion but gcc does
2005-01-21 14:32 [Bug c++/19565] New: g++ does not warn about overflow in conversion but gcc does fm3 at os dot inf dot tu-dresden dot de
2005-01-21 14:38 ` [Bug c++/19565] " pinskia at gcc dot gnu dot org
2005-01-21 20:27 ` [Bug c++/19565] [3.3/3.4/4.0 Regression] " belyshev at depni dot sinp dot msu dot ru
@ 2005-02-16 19:11 ` pinskia at gcc dot gnu dot org
2005-04-21 5:06 ` [Bug c++/19565] [3.3/3.4/4.0/4.1 " mmitchel at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-16 19:11 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-16 14:59 -------
This has been failing since at least 2000-12-31.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19565
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/19565] [3.3/3.4/4.0/4.1 Regression] g++ does not warn about overflow in conversion but gcc does
2005-01-21 14:32 [Bug c++/19565] New: g++ does not warn about overflow in conversion but gcc does fm3 at os dot inf dot tu-dresden dot de
` (2 preceding siblings ...)
2005-02-16 19:11 ` pinskia at gcc dot gnu dot org
@ 2005-04-21 5:06 ` mmitchel at gcc dot gnu dot org
2005-07-08 1:45 ` [Bug c++/19565] [3.4/4.0/4.1 " mmitchel at gcc dot gnu dot org
2005-09-27 16:25 ` mmitchel at gcc dot gnu dot org
5 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-04-21 5:06 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.0 |4.0.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19565
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/19565] [3.4/4.0/4.1 Regression] g++ does not warn about overflow in conversion but gcc does
2005-01-21 14:32 [Bug c++/19565] New: g++ does not warn about overflow in conversion but gcc does fm3 at os dot inf dot tu-dresden dot de
` (3 preceding siblings ...)
2005-04-21 5:06 ` [Bug c++/19565] [3.3/3.4/4.0/4.1 " mmitchel at gcc dot gnu dot org
@ 2005-07-08 1:45 ` mmitchel at gcc dot gnu dot org
2005-09-27 16:25 ` mmitchel at gcc dot gnu dot org
5 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-07-08 1:45 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.1 |4.0.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19565
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/19565] [3.4/4.0/4.1 Regression] g++ does not warn about overflow in conversion but gcc does
2005-01-21 14:32 [Bug c++/19565] New: g++ does not warn about overflow in conversion but gcc does fm3 at os dot inf dot tu-dresden dot de
` (4 preceding siblings ...)
2005-07-08 1:45 ` [Bug c++/19565] [3.4/4.0/4.1 " mmitchel at gcc dot gnu dot org
@ 2005-09-27 16:25 ` mmitchel at gcc dot gnu dot org
5 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-09-27 16:25 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.2 |4.0.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19565
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/19565] [3.4/4.0/4.1 Regression] g++ does not warn about overflow in conversion but gcc does
[not found] <bug-19565-9973@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2005-10-14 19:57 ` mmitchel at gcc dot gnu dot org
@ 2005-10-14 20:05 ` mmitchel at gcc dot gnu dot org
3 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-10-14 20:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from mmitchel at gcc dot gnu dot org 2005-10-14 20:05 -------
Fixed in 4.1.0.
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19565
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/19565] [3.4/4.0/4.1 Regression] g++ does not warn about overflow in conversion but gcc does
[not found] <bug-19565-9973@http.gcc.gnu.org/bugzilla/>
2005-10-14 1:02 ` mmitchel at gcc dot gnu dot org
2005-10-14 19:50 ` cvs-commit at gcc dot gnu dot org
@ 2005-10-14 19:57 ` mmitchel at gcc dot gnu dot org
2005-10-14 20:05 ` mmitchel at gcc dot gnu dot org
3 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-10-14 19:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from mmitchel at gcc dot gnu dot org 2005-10-14 19:57 -------
Fixed in 4.1.0. Will not be fixed in previous branches.
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.3 |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19565
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/19565] [3.4/4.0/4.1 Regression] g++ does not warn about overflow in conversion but gcc does
[not found] <bug-19565-9973@http.gcc.gnu.org/bugzilla/>
2005-10-14 1:02 ` mmitchel at gcc dot gnu dot org
@ 2005-10-14 19:50 ` cvs-commit at gcc dot gnu dot org
2005-10-14 19:57 ` mmitchel at gcc dot gnu dot org
2005-10-14 20:05 ` mmitchel at gcc dot gnu dot org
3 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-10-14 19:50 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from cvs-commit at gcc dot gnu dot org 2005-10-14 19:50 -------
Subject: Bug 19565
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: mmitchel@gcc.gnu.org 2005-10-14 19:50:09
Modified files:
gcc/cp : call.c decl.c typeck2.c ChangeLog
gcc/testsuite/g++.dg/ext: packed4.C
gcc/testsuite/g++.dg/opt: 20050511-1.C
gcc/testsuite/g++.old-deja/g++.other: warn4.C
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/warn: Wconversion1.C
Log message:
PR c++/19565
* g++.dg/warn/Wconversion1.C: New test.
* g++.dg/ext/packed4.C: Compile with -w.
* g++.dg/opt/20050511-1.C: Likewise.
* g++.old-deja/g++.other/warn4.C: Compiler with -Wconversion.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/call.c.diff?cvsroot=gcc&r1=1.558&r2=1.559
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&r1=1.1434&r2=1.1435
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/typeck2.c.diff?cvsroot=gcc&r1=1.192&r2=1.193
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4932&r2=1.4933
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/ext/packed4.C.diff?cvsroot=gcc&r1=1.2&r2=1.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/opt/20050511-1.C.diff?cvsroot=gcc&r1=1.1&r2=1.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/warn/Wconversion1.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.old-deja/g++.other/warn4.C.diff?cvsroot=gcc&r1=1.2&r2=1.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.6192&r2=1.6193
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19565
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/19565] [3.4/4.0/4.1 Regression] g++ does not warn about overflow in conversion but gcc does
[not found] <bug-19565-9973@http.gcc.gnu.org/bugzilla/>
@ 2005-10-14 1:02 ` mmitchel at gcc dot gnu dot org
2005-10-14 19:50 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-10-14 1:02 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
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=19565
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2005-10-14 20:05 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-21 14:32 [Bug c++/19565] New: g++ does not warn about overflow in conversion but gcc does fm3 at os dot inf dot tu-dresden dot de
2005-01-21 14:38 ` [Bug c++/19565] " pinskia at gcc dot gnu dot org
2005-01-21 20:27 ` [Bug c++/19565] [3.3/3.4/4.0 Regression] " belyshev at depni dot sinp dot msu dot ru
2005-02-16 19:11 ` pinskia at gcc dot gnu dot org
2005-04-21 5:06 ` [Bug c++/19565] [3.3/3.4/4.0/4.1 " mmitchel at gcc dot gnu dot org
2005-07-08 1:45 ` [Bug c++/19565] [3.4/4.0/4.1 " mmitchel at gcc dot gnu dot org
2005-09-27 16:25 ` mmitchel at gcc dot gnu dot org
[not found] <bug-19565-9973@http.gcc.gnu.org/bugzilla/>
2005-10-14 1:02 ` mmitchel at gcc dot gnu dot org
2005-10-14 19:50 ` cvs-commit at gcc dot gnu dot org
2005-10-14 19:57 ` mmitchel at gcc dot gnu dot org
2005-10-14 20:05 ` mmitchel 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).