public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/3893: libstdc++ scope problem appear with -fno-honor-std
@ 2001-08-05 1:50 lerdsuwa
0 siblings, 0 replies; 2+ messages in thread
From: lerdsuwa @ 2001-08-05 1:50 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, scisim
Synopsis: libstdc++ scope problem appear with -fno-honor-std
State-Changed-From-To: open->closed
State-Changed-By: lerdsuwa
State-Changed-When: Sun Aug 5 01:50:27 2001
State-Changed-Why:
-fhonor-std option is depreciated and has been removed in
the upcoming 3.0.1 release. You should use
'using namespace std;' to deal with old code. -fhonor-std
was intended for new, compliant code to work with old C++
library.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3893&database=gcc
^ permalink raw reply [flat|nested] 2+ messages in thread
* c++/3893: libstdc++ scope problem appear with -fno-honor-std
@ 2001-07-31 4:36 scisim
0 siblings, 0 replies; 2+ messages in thread
From: scisim @ 2001-07-31 4:36 UTC (permalink / raw)
To: gcc-gnats
>Number: 3893
>Category: c++
>Synopsis: libstdc++ scope problem appear with -fno-honor-std
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jul 31 04:36:02 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: SciSim
>Release: gcc version 3.0.1 20010728 (Debian prerelease)
>Organization:
>Environment:
# [default]
>Description:
Trying to compile old code, that is NOT using namespaces, without affecting the code itself.
Or is it my misconception about the use of this flag?
>How-To-Repeat:
$ cat > bug.cc
#include <iostream>
int main()
{
cout << "Hello world!" << endl;
return 0;
}
$ g++-3.0 -fno-honor-std bug.cc
In file included from /usr/include/g++-v3/bits/stl_algobase.h:73,
from /usr/include/g++-v3/bits/std_memory.h:49,
from /usr/include/g++-v3/bits/std_string.h:43,
from /usr/include/g++-v3/bits/localefwd.h:42,
from /usr/include/g++-v3/bits/std_ios.h:43,
from /usr/include/g++-v3/bits/std_ostream.h:39,
from /usr/include/g++-v3/bits/std_iostream.h:40,
from /usr/include/g++-v3/iostream:31,
from bug.cc:1:
/usr/include/g++-v3/bits/std_cstdlib.h:156: `llabs' is already declared in this scope
/usr/include/g++-v3/bits/std_cstdlib.h:158: `lldiv' is already declared in this scope
>Fix:
$ # quick & dirty workaround
$ cat > fix.h
using namespace std;
$ g++-3.0 -include fix.h bug.cc
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-08-05 1:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-05 1:50 c++/3893: libstdc++ scope problem appear with -fno-honor-std lerdsuwa
-- strict thread matches above, loose matches on Subject: below --
2001-07-31 4:36 scisim
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).