[llvm-bugs] [Bug 40970] New: segfault instead of an error with an invalid code

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Mar 5 15:20:26 PST 2019


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: unassignedclangbugs at nondot.org
          Reporter: jonathan.poelen at gmail.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190305/49fb23c7/attachment.html>


More information about the llvm-bugs mailing list