------- Comment #1 from pinskia at gcc dot gnu dot org  2006-03-15 16:19 -------
Hmm, we used to get a warning in 3.2.3 and before:
t.cc:9: warning: conversion to a reference to the same type will never use a 
   type conversion operator

And it was rejected in 2.95.3:
t.cc:9: warning: conversion to a reference to the same type will never use a
type conversion operator
t.cc:9: warning: conversion to a reference to the same type will never use a
type conversion operator
t.cc: In method `X::operator X &() const':
t.cc:10: conversion from `const X' to `X &' discards qualifiers
t.cc: In function `int main()':
t.cc:23: conversion from `const X' to `X &' discards qualifiers
t.cc:15: in passing argument 1 of `add_one(X &)'


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26698

Reply via email to