c++/1100: g++ 2.97 20001113 error declaring bad_alloc
sebor@roguewave.com
sebor@roguewave.com
Tue Dec 19 17:06:00 GMT 2000
>Number: 1100
>Category: c++
>Synopsis: g++ 2.97 20001113 error declaring bad_alloc
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Dec 19 17:06:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator: sebor@roguewave.com
>Release: 2.95.2, 2.97 20001113 (experimental)
>Organization:
>Environment:
>Description:
The snippet below fails to compile with 2.95.2 or a recent
snapshot of 2.97. Also note that the error message uses the
wrong term: it's a declaration, not a directive.
struct bad_alloc;
namespace std {
using ::bad_alloc;
}
test.cpp:7: using directive `bad_alloc'
introduced ambiguous type `std::bad_alloc'
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-prs
mailing list