================ @@ -4084,6 +4084,19 @@ bool Sema::MergeFunctionDecl(FunctionDecl *New, NamedDecl *&OldD, Scope *S, diag::note_carries_dependency_missing_first_decl) << 0/*Function*/; } + // SYCL spec 2020 + // The first declaration of a function with external linkage must + // specify sycl_external attribute. + // Subsequent declarations may optionally specify this attribute. ---------------- schittir wrote:
Makes sense. Thank you. https://github.com/llvm/llvm-project/pull/140282 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits