This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/36149] -O2 optimization generates wrong code
- From: "dino at concisoft dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 May 2008 14:18:59 -0000
- Subject: [Bug c++/36149] -O2 optimization generates wrong code
- References: <bug-36149-16153@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from dino at concisoft dot com 2008-05-06 14:18 -------
template<class Y> static LINK* LC(Y* X) {
return static_cast<LINK*>(X);
}
template<class Y> static const LINK* LCC(Y* X) {
return static_cast<const LINK*>(X);
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36149