This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13932] New: [3.3/3.4/3.5 regression] duplicate warning message for conversion
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jan 2004 14:49:15 -0000
- Subject: [Bug c++/13932] New: [3.3/3.4/3.5 regression] duplicate warning message for conversion
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
This little gem
-----------------
int i = 1.;
-----------------
yields
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc
x.cc:1: warning: initialization to `int' from `double'
x.cc:1: warning: argument to `int' from `double'
which is not only duplicated, but also seems
a) grammatically wrong in the first line (shouldn't it be
"initialization OF 'int' from 'double'"?)
b) nonsensical in the second line: it's not an argument TO
a FUNCTION "int", it's the argument to the ASSIGNMENT
to int
Highly bogus...
This is a regression against 2.95 which simply said
g/x> /home/bangerth/bin/gcc-2.95.3/bin/c++ -c x.cc
x.cc:1: warning: initialization to `int' from `double'
which is both short and precise.
W.
--
Summary: [3.3/3.4/3.5 regression] duplicate warning message for
conversion
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bangerth at dealii dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13932