[llvm-bugs] [Bug 47976] New: Crash in C++ for OpenCL when using vectors of half

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Oct 26 09:34:16 PDT 2020


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

            Bug ID: 47976
           Summary: Crash in C++ for OpenCL when using vectors of half
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: OpenCL
          Assignee: unassignedclangbugs at nondot.org
          Reporter: marco.antognini at arm.com
                CC: anastasia.stulova at arm.com, llvm-bugs at lists.llvm.org

Clang crashes when using vectors of half in C++ for OpenCL when the extension
is disabled.

half foo(half2 x) {
    return x.s0;
}

https://godbolt.org/z/Tcqnh9

Crash seems to happen in:

#5 0x0000562f40be7f0e clang::Sema::PerformImplicitConversion(clang::Expr*,
clang::QualType, clang::StandardConversionSequence const&,
clang::Sema::AssignmentAction, clang::Sema::CheckedConversionKind)
(/opt/compiler-explorer/clang-trunk/bin/clang+++0x4ef7f0e)

Clang doesn't crash when the extension is enabled using the expected pragma
directive.

-- 
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/20201026/b5fcf0b3/attachment.html>


More information about the llvm-bugs mailing list