error in g++ error report

Gabriel Dos Reis
Wed Sep 3 01:58:00 GMT 1997

>>>>> «Jason», Jason Merrill <> 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++- 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 ?

More information about the Gcc mailing list