[Bug c++/18468] bad code in template function called from template class method

2005-06-05 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-05 09:04 --- Reopening to ... -- What|Removed |Added Status|RESOLVED

[Bug c++/18468] bad code in template function called from template class method

2005-06-05 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-05 09:04 --- Mark as a dup of bug 21920 *** This bug has been marked as a duplicate of 21920 *** -- What|Removed |Added

[Bug c++/18468] bad code in template function called from template class method

2004-11-15 Thread james_avera at yahoo dot com
--- Additional Comments From james_avera at yahoo dot com 2004-11-16 02:47 --- Subject: Re: bad code in template function called from template class method Hi, Can you summarize what aliasing rule is violated? Note that the argument is a ref, so the code is not taking the adderess of

[Bug c++/18468] bad code in template function called from template class method

2004-11-15 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-16 02:52 --- Read http://gcc.gnu.org/bugs.html#nonbugs_general Casting does not work as expected when optimization is turned on. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18468

[Bug c++/18468] bad code in template function called from template class method

2004-11-13 Thread james_avera at yahoo dot com
--- Additional Comments From james_avera at yahoo dot com 2004-11-13 20:32 --- Created an attachment (id=7542) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7542action=view) test case Please compile with -O2 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18468

[Bug c++/18468] bad code in template function called from template class method

2004-11-13 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-13 20:37 --- You are violating the C++ aliasing rules: class GetPtrtokeyFunctor { public: const PtrInt * operator()(const Objptr objptr) { return reinterpret_castconst PtrInt *(objptr); } }; --