https://llvm.org/bugs/show_bug.cgi?id=29091

            Bug ID: 29091
           Summary: ICE when using boost::container::small_vector
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangb...@nondot.org
          Reporter: gonzalob...@gmail.com
                CC: llvm-bugs@lists.llvm.org
    Classification: Unclassified

I get the following ICE when trying to compile the following code that uses
"boost::container::small_vector" (I can reproduce this with clang trunk for
Boost 1.58 and Boost 1.61):

#include <boost/container/small_vector.hpp>
#include <type_traits>

using boost::container::small_vector;

struct A : small_vector<int, 3> {
  using vector_t = small_vector<int, 3>;
  using vector_t::vector_t;
  using vector_t::operator=;
};

template <typename P> inline void foo(P) {
  small_vector<P, 3> pls;
  pls.push_back(P{});
}

int main() {
  foo(A{});
  return 0;
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to