[Bug c++/13932] New: [3.3/3.4/3.5 regression] duplicate warning message for conversion
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Fri Jan 30 14:49:00 GMT 2004
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
More information about the Gcc-bugs
mailing list