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
65 lines
1.7 KiB
C++
65 lines
1.7 KiB
C++
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
|
|
template<typename T>
|
|
struct A0 {
|
|
struct B0;
|
|
|
|
template<typename U>
|
|
struct C0 {
|
|
struct D0;
|
|
|
|
template<typename V>
|
|
struct E0;
|
|
};
|
|
};
|
|
|
|
template<typename T>
|
|
int A0<T>::B0::* f0();
|
|
|
|
template<typename T>
|
|
int A0<T>::B1::* f1();
|
|
|
|
template<typename T>
|
|
int A0<T>::C0<int>::* f2(); // expected-error {{expected unqualified-id}}
|
|
|
|
template<typename T>
|
|
int A0<T>::C1<int>::* f3(); // expected-error {{no member named 'C1' in 'A0<T>'}}
|
|
// expected-error@-1 {{expected ';' after top level declarator}}
|
|
|
|
template<typename T>
|
|
int A0<T>::template C2<int>::* f4();
|
|
|
|
template<typename T>
|
|
int A0<T>::template C0<int>::D0::* f5();
|
|
|
|
template<typename T>
|
|
int A0<T>::template C2<int>::D1::* f6();
|
|
|
|
template<typename T>
|
|
int A0<T>::template C0<int>::E0<int>::* f7(); // expected-error {{use 'template' keyword to treat 'E0' as a dependent template name}}
|
|
// expected-error@-1 {{expected unqualified-id}}
|
|
|
|
template<typename T>
|
|
int A0<T>::template C2<int>::E1<int>::* f8(); // expected-error {{no member named 'C2' in 'A0<T>'}}
|
|
|
|
template<typename T>
|
|
int A0<T>::template C0<int>::template E0<int>::* f9();
|
|
|
|
template<typename T>
|
|
int A0<T>::template C2<int>::template E1<int>::* f10();
|
|
|
|
namespace TypoCorrection {
|
|
template<typename T>
|
|
struct A {
|
|
template<typename U>
|
|
struct Typo; // expected-note {{'Typo' declared here}}
|
|
};
|
|
|
|
template<typename T>
|
|
int A<T>::template typo<int>::* f();
|
|
|
|
template<typename T>
|
|
int A<T>::typo<int>::* g(); // expected-error {{no template named 'typo' in 'TypoCorrection::A<T>'; did you mean 'Typo'?}}
|
|
// expected-error@-1 {{expected unqualified-id}}
|
|
}
|