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

            Bug ID: 32598
           Summary: SIGSEGV on recursive templates
           Product: clang
           Version: 4.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangb...@nondot.org
          Reporter: vanya...@gmail.com
                CC: dgre...@apple.com, llvm-bugs@lists.llvm.org

clang 4.0 crashes on this code:

template<class Predicate, typename T>
auto accept() -> decltype(Predicate::template requires<T>());

struct TypePredicate
{
        template<class T>
        static auto requires() -> decltype(accept<TypePredicate, T>());
};

void bar()
{
        accept<TypePredicate, int>();
}

Previous compiler versions correctly showed an error on this code.

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