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++/36149] -O2 optimization generates wrong code



------- Comment #5 from dino at concisoft dot com  2008-05-06 15:42 -------
Are we missing a const, or would you care to give a bit more specific comment?

I see that:

    template<class Y> static const LINK* LCC(Y* X) {
        return static_cast<const LINK*>(X);
    }

could be missing a const in the declaration of Y* X, should probably be const
Y* X. Is that what you're referring to?


-- 


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


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