Opened 13 years ago

Closed 13 years ago

#3641 closed Bugs (fixed)

boost/exception_ptr.hpp doesn't compile on mingw gcc 3.4.5

Reported by: Ákos Maróy <akos@…> Owned by: Emil Dotchevski
Milestone: Boost 1.42.0 Component: exception
Version: Boost 1.41.0 Severity: Showstopper
Keywords: Cc:

Description

when including boost/exception_ptr.hpp, for example via boost/exception.hpp, it fails to compile under mingw / gcc 3.4.5:

$ cat sample.cpp 
#include <boost/exception.hpp>
$ i586-mingw32-g++ -o sample sample.cpp 
In file included from /opt/usr-mingw-41/include/boost/exception/all.hpp:24,
                 from /opt/usr-mingw-41/include/boost/exception.hpp:11,
                 from sample.cpp:1:
/opt/usr-mingw-41/include/boost/exception_ptr.hpp:43: error: looser throw specifier for `virtual boost::exception_ptr::~exception_ptr()'
/opt/usr-mingw-41/include/boost/exception/detail/exception_ptr_base.hpp:27: error:   overriding `virtual boost::exception_detail::exception_ptr_base::~exception_ptr_base() throw ()'
$ i586-mingw32-g++ --version
i586-mingw32-g++ (GCC) 3.4.5 (mingw-vista special r2)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

the same code compiles fine when using boost 1.40.0

Change History (1)

comment:1 by Emil Dotchevski, 13 years ago

Resolution: fixed
Status: newclosed

Fixed, revision 57764 (release), 57765 (trunk)

Note: See TracTickets for help on using tickets.