From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,1681c624668fcbe5,start X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2000-09-13 05:50:07 PST Path: supernews.google.com!sn-xit-02!sn-east!supernews.com!news-feed.riddles.org.uk!fr.clara.net!fr.usenet-edu.net!usenet-edu.net!ciril.fr!loria.fr!news-rocq!fantomas.inria.fr!lasgoutt From: lasgoutt@fantomas.inria.fr (Jean-Marc Lasgouttes) Newsgroups: comp.unix.tru64 Subject: [cxx 6.2] bug in std::filebuf constructor? Date: 13 Sep 2000 12:41:48 GMT Organization: INRIA Rocquencourt Domaine de Voluceau BP 105 - 78153 Le Chesnay Cedex France Message-ID: <8pnsmc$lqh$1@ites.inria.fr> NNTP-Posting-Host: fantomas.inria.fr MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ites.inria.fr 968848908 22353 128.93.11.34 (13 Sep 2000 12:41:48 GMT) X-Complaints-To: usenet@inria.fr NNTP-Posting-Date: 13 Sep 2000 12:41:48 GMT X-Newsreader: xrn 9.02-beta-3 Xref: supernews.google.com comp.unix.tru64:363 Hello, I have run into a behaviour of compaq cxx 6.2-024 which I believe to be a bug: The following example, when compiled in strict_ansi mode, outputs is_open=1, while the standard stipulates that is_open() should be false. #include #include int main() { std::filebuf buf; std::cerr << "is_open=" << buf.is_open() << std::endl; return 0; } Is that a real bug, or did I overlook something? JMarc -- ------------------------------------------------- Jean-Marc Lasgouttes, Projet MEVAL, INRIA, France e-mail : jean-marc.lasgouttes@inria.fr