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

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Oct 13 21:37:00 GMT 2006



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



More information about the Gcc-bugs mailing list