This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
libstdc++/1605: exception::what() declares no exception list
- To: gcc-gnats at gcc dot gnu dot org
- Subject: libstdc++/1605: exception::what() declares no exception list
- From: wolfgang dot bangerth at iwr dot uni-heidelberg dot de
- Date: 10 Jan 2001 13:25:18 -0000
- Reply-To: wolfgang dot bangerth at iwr dot uni-heidelberg dot de
>Number: 1605
>Category: libstdc++
>Synopsis: exception::what() declares no exception list
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jan 10 05:26:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Wolfgang Bangerth
>Release: unknown-1.0
>Organization:
>Environment:
all
>Description:
The C++ Dec96 working paper (sec. 18.6.1), Stroustrup, and
some other compilers declare
virtual const char* what() const throw();
in class exception, while gcc does
virtual const char* what() const;
>How-To-Repeat:
>Fix:
*** gcc/libstdc++-v3/libsupc++/exception Wed Oct 11 01:43:26 2000
--- gcc/libstdc++-v3/libsupc++/exception.1 Wed Jan 10 14:23:34 2001
***************
*** 1,5 ****
// Exception Handling support header for -*- C++ -*-
! // Copyright (C) 1995, 1996, 1997, 1998, 2000 Free Software Foundation
// This file is part of GNU CC.
//
--- 1,5 ----
// Exception Handling support header for -*- C++ -*-
! // Copyright (C) 1995, 1996, 1997, 1998, 2000, 2001 Free Software Foundation
// This file is part of GNU CC.
//
***************
*** 40,46 ****
public:
exception () { }
virtual ~exception () { }
! virtual const char* what () const;
};
class bad_exception : public exception {
--- 40,46 ----
public:
exception () { }
virtual ~exception () { }
! virtual const char* what () const throw ();
};
class bad_exception : public exception {
>Release-Note:
>Audit-Trail:
>Unformatted: