This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c++/1100: g++ 2.97 20001113 error declaring bad_alloc



>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:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]