[Bug c++/24522] htonl in optimized template function generates compiler warning

2005-10-25 Thread ckillian at cs dot ucsd dot edu
--- Comment #1 from ckillian at cs dot ucsd dot edu 2005-10-25 16:26 --- Created an attachment (id=10055) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10055action=view) The test.cc file -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24522 --- You are receiving this mail

[Bug c++/24522] htonl in optimized template function generates compiler warning

2005-10-25 Thread ckillian at cs dot ucsd dot edu
--- Comment #2 from ckillian at cs dot ucsd dot edu 2005-10-25 16:26 --- Created an attachment (id=10056) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10056action=view) preprocessor output -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24522 --- You are receiving this

[Bug c++/24522] htonl in optimized template function generates compiler warning

2005-10-25 Thread ian at airs dot com
--- Comment #3 from ian at airs dot com 2005-10-25 16:36 --- 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. Note that this slightly modified test

[Bug c++/24522] htonl in optimized template function generates compiler warning

2005-10-25 Thread ckillian at cs dot ucsd dot edu
--- Comment #4 from ckillian at cs dot ucsd dot edu 2005-10-25 17:09 --- (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

[Bug c++/24522] htonl in optimized template function generates compiler warning

2005-10-25 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2005-10-25 17:51 --- Here is a reduced testcase: template int void f(int i) { int i1 = (__extension__ ({int i2 = i; i2;})); } -- pinskia at gcc dot gnu dot org changed: What|Removed |Added