This is the mail archive of the gcc-bugs@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]

libstdc++/1605: exception::what() declares no exception list



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

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