This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: error in g++ error report
- To: Jason Merrill <jason at cygnus dot com>
- Subject: Re: error in g++ error report
- From: Gabriel Dos Reis <Gabriel dot Dos-Reis at dptmaths dot ens-cachan dot fr>
- Date: Wed, 3 Sep 1997 10:57:47 +0200 (MET DST)
- Cc: egcs at cygnus dot com
- Newsgroups: cygnus.egcs
- References: <199708290800.KAA07042.cygnus.egcs@piano.dptmaths.ens-cachan.fr><u9203735u4.fsf@yorick.cygnus.com>
>>>>> «Jason», Jason Merrill <jason@cygnus.com> wrote:
Jason> Funny, I get
Jason> wa.C: In function `int main()':
Jason> wa.C:10: warning: conversion from `const A' to `A &' discards const
Jason> wa.C:4: warning: in passing argument 1 of `A::A(A &)'
Jason> What version are you using?
Jason> Jason
I used g++-2.7.2.2. I got the same warning with
egcs-2.90.03 970828 (gcc2-970802 experimental)
Good news.
-- Gaby
PS: should this be a warning or an error ?