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
55 lines
1.8 KiB
C++
55 lines
1.8 KiB
C++
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
|
|
|
|
template<typename T> class vector2 {};
|
|
template<typename T> class vector : vector2<T> {};
|
|
|
|
template<typename T> void Foo2(vector2<const T*> V) {} // expected-note{{candidate template ignored: cannot deduce a type for 'T' that would make 'const T' equal 'int'}}
|
|
template<typename T> void Foo(vector<const T*> V) {} // expected-note {{candidate template ignored: cannot deduce a type for 'T' that would make 'const T' equal 'int'}}
|
|
|
|
void test() {
|
|
Foo2(vector2<int*>()); // expected-error{{no matching function for call to 'Foo2'}}
|
|
Foo(vector<int*>()); // expected-error{{no matching function for call to 'Foo'}}
|
|
}
|
|
|
|
namespace rdar13267210 {
|
|
template < typename T > class A {
|
|
BaseTy; // expected-error{{a type specifier is required for all declarations}}
|
|
};
|
|
|
|
template < typename T, int N > class C: A < T > {};
|
|
|
|
class B {
|
|
C<long, 16> ExternalDefinitions;
|
|
C<long, 64> &Record;
|
|
|
|
void AddSourceLocation(A<long> &R); // expected-note{{passing argument to parameter 'R' here}}
|
|
void AddTemplateKWAndArgsInfo() {
|
|
AddSourceLocation(Record); // expected-error{{non-const lvalue reference to type}}
|
|
}
|
|
};
|
|
}
|
|
|
|
namespace PR16292 {
|
|
class IncompleteClass; // expected-note{{forward declaration}}
|
|
class BaseClass {
|
|
IncompleteClass Foo; // expected-error{{field has incomplete type}}
|
|
};
|
|
template<class T> class DerivedClass : public BaseClass {};
|
|
void* p = new DerivedClass<void>;
|
|
}
|
|
|
|
namespace rdar14183893 {
|
|
class Typ { // expected-note {{not complete}}
|
|
Typ x; // expected-error {{incomplete type}}
|
|
};
|
|
|
|
template <unsigned C> class B : Typ {};
|
|
typedef B<0> TFP;
|
|
|
|
class A {
|
|
TFP m_p;
|
|
void Enable() { 0, A(); } // expected-warning {{left operand of comma operator has no effect}}
|
|
};
|
|
}
|