public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/5825: std::__basic_file not compilable
@ 2002-03-07  9:06 pme
  0 siblings, 0 replies; 4+ messages in thread
From: pme @ 2002-03-07  9:06 UTC (permalink / raw)
  To: Axel.Zeuner, gcc-bugs, gcc-prs, nobody

Synopsis: std::__basic_file not compilable

State-Changed-From-To: feedback->closed
State-Changed-By: pme
State-Changed-When: Thu Mar  7 09:06:35 2002
State-Changed-Why:
    Closed on request of submitter.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5825


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

* Re: libstdc++/5825: std::__basic_file not compilable
@ 2002-03-04 17:46 Craig Rodrigues
  0 siblings, 0 replies; 4+ messages in thread
From: Craig Rodrigues @ 2002-03-04 17:46 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR libstdc++/5825; it has been noted by GNATS.

From: Craig Rodrigues <rodrigc@mediaone.net>
To: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, Axel.Zeuner@systor.com,
   gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org
Cc:  
Subject: Re: libstdc++/5825: std::__basic_file not compilable
Date: Mon, 04 Mar 2002 20:41:19 -0500

 Erroneously filed in PR 5831 by GNATS:
 
 ============================================================
 
 Sorry for the forgotten version information.
                The output for g++ -v is:
 
                Reading specs from =
                /usr/local/gcc31/lib/gcc-lib/i686-pc-linux-gnu/3.1/specs
                Configured with: ../configure --enable-threads =
                --prefix=3D/usr/local/gcc31
                --enable-shared
                Thread model: posix
                gcc version 3.1 20020302 (prerelease)
 
                Best regards
                Dr. Axel Zeuner
 
                Consultant e.Business Delivery D
                SYSTOR GmbH & Co. KG, =20
                Darmst=E4dter Landstra=DFe 184, 60598 Frankfurt am Main
                Phone: +49 (0)69 - 96 88 51 41         Fax: +49 (0)69 -
 96 88 51 30
                eMail axel.zeuner@systor.com           W3:
 http://www.systor.com
 
 ------------------------------------------------------------------------=
 
                --
                Murphy's Law fails only when you try to demonstrate it,
 and thus =
                succeeds.
 
                > -----Urspr=FCngliche Nachricht-----
                > Von: pme@gcc.gnu.org [mailto:pme@gcc.gnu.org]
                > Gesendet am: Montag, 4. M=E4rz 2002 16:50
                > An: Axel.Zeuner@systor.com; gcc-bugs@gcc.gnu.org; =
                gcc-prs@gcc.gnu.org;
                > nobody@gcc.gnu.org
                > Betreff: Re: libstdc++/5825: std::__basic_file not
 compilable
                >=20
                > Synopsis: std::__basic_file not compilable
                >=20
                > State-Changed-From-To: open->feedback
                > State-Changed-By: pme
                > State-Changed-When: Mon Mar  4 07:50:03 2002
                > State-Changed-Why:
                >     Please send the output of "g++ -v".  This appears
 to be
                >     some kind of configuration error, but without a
 complete
                >     bug report (again, read the instructions), we can't
 tell.
                >=20
                >
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=3Dview%20audit-trail&
                > database=3Dgcc&pr=3D5825
                >=20
 
 
 ============================================================
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5825
 


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

* Re: libstdc++/5825: std::__basic_file not compilable
@ 2002-03-04  7:50 pme
  0 siblings, 0 replies; 4+ messages in thread
From: pme @ 2002-03-04  7:50 UTC (permalink / raw)
  To: Axel.Zeuner, gcc-bugs, gcc-prs, nobody

Synopsis: std::__basic_file not compilable

State-Changed-From-To: open->feedback
State-Changed-By: pme
State-Changed-When: Mon Mar  4 07:50:03 2002
State-Changed-Why:
    Please send the output of "g++ -v".  This appears to be
    some kind of configuration error, but without a complete
    bug report (again, read the instructions), we can't tell.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5825


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

* libstdc++/5825: std::__basic_file not compilable
@ 2002-03-04  1:16 Axel.Zeuner
  0 siblings, 0 replies; 4+ messages in thread
From: Axel.Zeuner @ 2002-03-04  1:16 UTC (permalink / raw)
  To: gcc-gnats


>Number:         5825
>Category:       libstdc++
>Synopsis:       std::__basic_file not compilable
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 04 01:16:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Axel Zeuner
>Release:        GNU C++ version 3.1 20020302 (prerelease) (i686-pc-linux-gnu)
>Organization:
>Environment:
Debian Woody Prerelease
>Description:
Not compilable std::ofstream because of missing define, probably a configuration bug.

// #define WORKAROUND
#if defined (WORKAROUND)
#define  _GLIBCPP_BASIC_FILE_ENCAPSULATION 1
#endif
#include <fstream>

int main(int argc, char** argv)
{
	if (argc < 2) {
		return 1;
	}
	std::ofstream x(argv[1],std::ios::out);
	x<<"Hello world"<<std::endl;
	return 0;
}

Result:
End of search list.
In file included from /usr/local/gcc31/include/g++-v3/fstream:48,
                 from fstream.cc:5:
/usr/local/gcc31/include/g++-v3/bits/basic_file.h:135: '__c_wfile_type' is used 
   as a type, but is not defined as a type.
In file included from /usr/local/gcc31/include/g++-v3/bits/basic_file.h:262,
                 from /usr/local/gcc31/include/g++-v3/fstream:48,
                 from fstream.cc:5:
/usr/local/gcc31/include/g++-v3/i686-pc-linux-gnu/bits/basic_file_model.h: In 
   constructor `std::__basic_file<_CharT>::__basic_file(std::__c_lock*)':
/usr/local/gcc31/include/g++-v3/i686-pc-linux-gnu/bits/basic_file_model.h:39: class
   `std::__basic_file<_CharT>' does not have any field named `_M_cfile'
/usr/local/gcc31/include/g++-v3/i686-pc-linux-gnu/bits/basic_file_model.h:39: class
   `std::__basic_file<_CharT>' does not have any field named `_M_cfile_created'


>How-To-Repeat:
Compile the attached source.
>Fix:
#define  _GLIBCPP_BASIC_FILE_ENCAPSULATION 1
before including <fstream>
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="fstream.cc"
Content-Disposition: inline; filename="fstream.cc"

// #define WORKAROUND
#if defined (WORKAROUND)
#define  _GLIBCPP_BASIC_FILE_ENCAPSULATION 1
#endif
#include <fstream>

int main(int argc, char** argv)
{
	if (argc < 2) {
		return 1;
	}
	std::ofstream x(argv[1],std::ios::out);
	x<<"Hello world"<<std::endl;
	return 0;
}













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

end of thread, other threads:[~2002-03-07 17:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-07  9:06 libstdc++/5825: std::__basic_file not compilable pme
  -- strict thread matches above, loose matches on Subject: below --
2002-03-04 17:46 Craig Rodrigues
2002-03-04  7:50 pme
2002-03-04  1:16 Axel.Zeuner

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).