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

            Bug ID: 40970
           Summary: segfault instead of an error with an invalid code
           Product: clang
           Version: 8.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]

Created attachment 21565
  --> https://bugs.llvm.org/attachment.cgi?id=21565&action=edit
backtrace

struct A
{
    template<class... Ts>
    using check_printf_result = int;
};

template<class T, class... Ts>
// typename T::template check_printf_result<Ts...>
decltype(T::template check_printf_result<Ts...>) // crash instead of an error
foo(T k);

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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to