c++/1919: localefwd.h won't compile with -fno-exceptions
dbaron@fas.harvard.edu
dbaron@fas.harvard.edu
Thu Feb 8 21:26:00 GMT 2001
>Number: 1919
>Category: c++
>Synopsis: localefwd.h won't compile with -fno-exceptions
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Thu Feb 08 21:26:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: David Baron
>Release: gcc version 2.97 20010208 (experimental)
>Organization:
>Environment:
>Description:
Using the current gcc trunk, when I attempt to compile a
file including <iostream.h> with -fno-exceptions, I get
the error:
In file included from /usr/local/gcc-trunk/include/g++-v3/bits/std_ios.h:41,
from /usr/local/gcc-trunk/include/g++-v3/bits/std_ostream.h:37, from /usr/local/gcc-trunk/include/g++-v3/bits/std_iostream.h:38,
from /usr/local/gcc-trunk/include/g++-v3/iostream.h:31,
from test.cpp:2:
/usr/local/gcc-trunk/include/g++-v3/bits/localefwd.h: In member function `void
std::locale::_Impl::_M_remove_reference()':
/usr/local/gcc-trunk/include/g++-v3/bits/localefwd.h:359: exception handling
disabled, use -fexceptions to enable
>How-To-Repeat:
Create a simple C++ file with:
#include <iostream.h>
int main() { return 0; }
and compile with
g++ -fno-exceptions <filename>
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list