This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: error in g++ error report


>>>>> «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 ?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]