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: unassignedclangb...@nondot.org
          Reporter: marco.antogn...@arm.com
                CC: anastasia.stul...@arm.com, llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to