This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

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


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


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