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]
Other format: [Raw text]

[Bug c++/29466] pointless error on implicit destructor



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-10-13 21:37 -------
Comeau also errors and I don't have access to the standard right at this moment
to double check.

"ComeauTest.c", line 3: error: exception specification for implicitly declared
          virtual function "der1::~der1" is incompatible with that of
          overridden function "std::exception::~exception"
  class der1 : public std::exception { std::string s;};
        ^

(In reply to comment #0)
> It also introduces non-portable 
> implementation dependencies where, as here, the base class is a system class 
> with unknown and frequently changing throw specification that vary across

To reply to this part, you are incorrect in saying they are unknown and
changing throw specifications as the C++ standard defines them.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29466


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