CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
40 lines
1.4 KiB
C++
40 lines
1.4 KiB
C++
// RUN: %clang_cc1 -verify -fsyntax-only %s
|
|
// The diagnostics we produce for this code tickled a bug in raw_ostream.
|
|
template <typename _Alloc> class allocator;
|
|
template <class _CharT> struct char_traits;
|
|
template <typename _CharT, typename _Traits = char_traits<_CharT>,
|
|
typename _Alloc = allocator<_CharT> >
|
|
class basic_string;
|
|
typedef basic_string<wchar_t> wstring;
|
|
class Closure {
|
|
};
|
|
template <class A1> class Callback1 {
|
|
};
|
|
template <class A1, class A2> class Callback2 {
|
|
};
|
|
template <class R, class A2> class ResultCallback1 {
|
|
};
|
|
template <bool del, class R, class T, class P1, class P2, class A1>
|
|
class AAAAAAAResultCallback_2_1 : public ResultCallback1<R, A1> {
|
|
};
|
|
template <bool del, class T, class P1, class P2, class A1>
|
|
class AAAAAAAResultCallback_2_1< del, void, T, P1, P2, A1> :
|
|
public Callback1<A1> {
|
|
public:
|
|
typedef Callback1<A1> base;
|
|
};
|
|
template <class T1, class T2, class R, class P1, class P2, class A1>
|
|
inline typename AAAAAAAResultCallback_2_1<true, R, T1, P1, P2, A1>::base*
|
|
NewCallback(T1* obj, R(T2::* member)(P1, P2, A1), const P1& p1, const P2& p2) {}
|
|
namespace util { class Status {}; }
|
|
class xxxxxxxxxxxxxxxxx {
|
|
void Bar(wstring* s, util::Status* status,
|
|
Callback2<util::Status, wstring>* done);
|
|
void Foo();
|
|
};
|
|
void xxxxxxxxxxxxxxxxx::Foo() {
|
|
wstring* s = __null;
|
|
util::Status* status = __null;
|
|
Closure* cb = NewCallback(this, &xxxxxxxxxxxxxxxxx::Bar, s, status); // expected-error{{cannot initialize}}
|
|
}
|