[Bug c++/24522] [4.0 Regression] htonl in optimized template function generates compiler warning
------- Comment #6 from pinskia at gcc dot gnu dot org 2005-10-25 17:59 -------
(In reply to comment #3)
> I believe this winds up being a duplicate of PR c++/8057, which is fixed on
> mainline. With the test case in the PR, I see the warning with 4.0, but I do
> not see the warning on mainline.
I don't think this is a duplicate of PR 8057 because my reduced testcase worked
in 3.4.5. I think this was introduced by one of the C++ patches between 4.0.1
and 4.0.2
> Or without -O2, -Wall, or outside of a template function.
the without -O2, is because the headers change, which is why my simplified
example shows the issue at every optimization level.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
GCC build triplet|i486-pc-linux-gnu |
GCC host triplet|i486-pc-linux-gnu |
GCC target triplet|i486-pc-linux-gnu |
Known to fail| |4.0.3
Known to work|4.1.0 3.4.0 |4.1.0 3.4.0 3.4.5
Last reconfirmed|0000-00-00 00:00:00 |2005-10-25 17:59:02
date| |
Summary|htonl in optimized template |[4.0 Regression] htonl in
|function generates compiler |optimized template function
|warning |generates compiler warning
Target Milestone|--- |4.0.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24522
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
Reply to: