https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67870

            Bug ID: 67870
           Summary: ICE: in type_throw_all_p, at cp/except.c:1306
           Product: gcc
           Version: 4.9.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dragonroot at gmail dot com
  Target Milestone: ---

The following code snippet makes the compiler ICE. Affects at least 4.8.2 and
4.9.3. Does not seem to affect 5.x. Compile with --std=c++11

==================================================

#include <type_traits>

template< class T >
struct Tmpl
{
  ~Tmpl() noexcept( std::is_nothrow_destructible< T >::value )
  {}
};

struct Empty
{
};

struct Foo
{
  ~Foo()
  {}

  Tmpl< Empty > member;
};

int main()
{
}

==================================================

Live snippet to play with: http://melpon.org/wandbox/permlink/6vmp1P7Ppwzjk1kh

Reply via email to