public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11990] New: "operand of conditional has no effect" warnings in libstdc++
@ 2003-08-20 10:23 gerald at pfeifer dot com
  2003-08-20 14:25 ` [Bug libstdc++/11990] " bangerth at dealii dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: gerald at pfeifer dot com @ 2003-08-20 10:23 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: "operand of conditional has no effect" warnings in
                    libstdc++
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gerald at pfeifer dot com
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i386-unknown-freebsd4.8

Compile the following with -O3 -Wall:

  #include <iostream>

  using namespace std;

  int main(int argc, char **) {
    cout << "argc = " << argc;
  }

Current CVS issues the following warnings:

/gcc-current/bin/../lib/gcc/i386-unknown-freebsd4.8/3.4/../../../../include/c++/3.4/bits/locale_facets.tcc:
In
   static member function `static void std::__pad<_CharT, 
   _Traits>::_S_pad(std::ios_base&, _CharT, _CharT*, const _CharT*, streamsize, 
   streamsize, bool) [with _CharT = char, _Traits = std::char_traits<char>]':
/gcc-current/bin/../lib/gcc/i386-unknown-freebsd4.8/3.4/../../../../include/c++/3.4/bits/locale_facets.tcc:649:
  instantiated from `void std::num_put<_CharT, _OutIter>::_M_pad(_CharT,
streamsize, std::ios_base&, _CharT*, const _CharT*, int&) const [with _CharT =
char, _OutIter = std::ostreambuf_iterator<char, std::char_traits<char> >]'
/gcc-current/bin/../lib/gcc/i386-unknown-freebsd4.8/3.4/../../../../include/c++/3.4/bits/locale_facets.tcc:837:
  instantiated from `_OutIter std::num_put<_CharT,
_OutIter>::_M_insert_int(_OutIter, std::ios_base&, _CharT, _ValueT) const [with
_ValueT = long unsigned int, _CharT = char, _OutIter =
std::ostreambuf_iterator<char, std::char_traits<char> >]'
/gcc-current/bin/../lib/gcc/i386-unknown-freebsd4.8/3.4/../../../../include/c++/3.4/bits/locale_facets.tcc:1049:
  instantiated from `_OutIter std::num_put<_CharT, _OutIter>::do_put(_OutIter,
std::ios_base&, _CharT, long unsigned int) const [with _CharT = char, _OutIter =
std::ostreambuf_iterator<char, std::char_traits<char> >]'
/gcc-current/bin/../lib/gcc/i386-unknown-freebsd4.8/3.4/../../../../include/c++/3.4/bits/locale_facets.h:944:
  instantiated from `_OutIter std::num_put<_CharT, _OutIter>::put(_OutIter,
std::ios_base&, _CharT, long unsigned int) const [with _CharT = char, _OutIter =
std::ostreambuf_iterator<char, std::char_traits<char> >]'
/gcc-current/bin/../lib/gcc/i386-unknown-freebsd4.8/3.4/../../../../include/c++/3.4/bits/ostream.tcc:224:
  instantiated from `std::basic_ostream<_CharT, _Traits>&
std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT
= char, _Traits = std::char_traits<char>]'
/gcc-current/bin/../lib/gcc/i386-unknown-freebsd4.8/3.4/../../../../include/c++/3.4/ostream:196:
  instantiated from `std::basic_ostream<_CharT, _Traits>&
std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char,
_Traits = std::char_traits<char>]'
x.cc:6:   instantiated from here
/gcc-current/bin/../lib/gcc/i386-unknown-freebsd4.8/3.4/../../../../include/c++/3.4/bits/locale_facets.tcc:2241:
warning: second
   operand of conditional has no effect
/gcc-current/bin/../lib/gcc/i386-unknown-freebsd4.8/3.4/../../../../include/c++/3.4/bits/locale_facets.tcc:2241:
warning: third
   operand of conditional has no effect


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2003-08-29 17:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-20 10:23 [Bug c++/11990] New: "operand of conditional has no effect" warnings in libstdc++ gerald at pfeifer dot com
2003-08-20 14:25 ` [Bug libstdc++/11990] " bangerth at dealii dot org
2003-08-23  1:23 ` dhazeghi at yahoo dot com
2003-08-23  7:04 ` gerald at pfeifer dot com
2003-08-23 12:15 ` [Bug libstdc++/11990] [3.4 Regression] " pinskia at gcc dot gnu dot org
2003-08-23 16:00 ` dhazeghi at yahoo dot com
2003-08-24 14:59 ` gerald at pfeifer dot com
2003-08-29 17:40 ` cvs-commit at gcc dot gnu dot org
2003-08-29 17:45 ` paolo at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).