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++/49369] typeof() strips const from member when used in const method


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

--- Comment #2 from shawn.bohrer at gmail dot com 2011-06-10 20:20:11 UTC ---
(In reply to comment #1)
> can you use typeof(this->B::member) instead?

Yes this works for my application, thanks for the suggestion.  Surely this is
still a bug though correct?


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