[Boost-bugs] [Boost C++ Libraries] #3983: catch reference to incomplete type in signals2

Subject: [Boost-bugs] [Boost C++ Libraries] #3983: catch reference to incomplete type in signals2
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-03-06 23:16:09


#3983: catch reference to incomplete type in signals2
-------------------------------------+--------------------------------------
 Reporter: sorokin@… | Owner: fmhess
     Type: Bugs | Status: new
Milestone: Boost 1.43.0 | Component: signals2
  Version: Boost Development Trunk | Severity: Problem
 Keywords: |
-------------------------------------+--------------------------------------
 In boost/signals2/last_value.hpp reference to incomplete type
 boost::signals2::expired_slot is catched.

 The following code don't compile with comeau and clang:

 struct T;

 template <typename U>
 void f()
 {
    try
    {}
    catch(T const &)
    {}
 }

 struct T
 {};

 int main()
 {
    f<int>();
    return 0;
 }

 With error message:

 7.cpp:9:19: error: cannot catch reference to incomplete type 'struct T
 const'
    catch(T const &)
                   ^

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3983>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC