------- Additional Comments From reichelt at gcc dot gnu dot org 2004-10-11 12:21 ------- Confirmed. In fact we have:
enum _Ios_Seekdir { _S_ios_seekdir_end = 1L << 16 }; class ios_base { typedef _Ios_Seekdir seekdir; static const seekdir beg = seekdir(0); static const seekdir cur = seekdir(1); static const seekdir end = seekdir(2); // more stuff ... }; The problem exists at least since gcc 3.1. In fact the code was already there in gcc 3.0, but the compiler didn't complain about it. In 2.95.3 we had: enum seek_dir { beg, cur, end}; Therefore I rate this as regression. -- What |Removed |Added ---------------------------------------------------------------------------- CC| |reichelt at gcc dot gnu dot | |org Status|UNCONFIRMED |NEW Ever Confirmed| |1 Keywords| |diagnostic, monitored Last reconfirmed|0000-00-00 00:00:00 |2004-10-11 12:21:52 date| | Summary|Spurious warnings |[3.3/3.4/4.0 regression] | |Spurious warnings about | |std::ios_base::seekdir Target Milestone|--- |3.4.3 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17922