[Bug c++/20185] assignment error in inline function

falk at debian dot org gcc-bugzilla@gcc.gnu.org
Thu Feb 24 17:11:00 GMT 2005


------- Additional Comments From falk at debian dot org  2005-02-24 14:21 -------
(In reply to comment #4)
> (In reply to comment #3)
> > (In reply to comment #2)
> > > (In reply to comment #1)
> >
> > You are accessing an object of type "class data" through an lvalue of type
> > "uint64". The type "uint64" here matches none of the mentioned cases; 
> 
> But if you take this line:
>  inline data::operator uint64 () const 
>         { return *(uint64*)&lo; }
> ... we have no class data.

But an object of type uint32 = unsigned int, for which the same holds.


-- 


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



More information about the Gcc-bugs mailing list