Files
TheRock/compiler/amd-llvm/clang/test/SemaTemplate/temp.cpp
T
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

51 lines
1.9 KiB
C++

// RUN: %clang_cc1 -fsyntax-only -verify %s
namespace test0 {
// p3
template<typename T> int foo(T), bar(T, T); // expected-error{{single entity}}
}
// PR7252
namespace test1 {
namespace A { template<typename T> struct Base { typedef T t; }; } // expected-note {{member type 'test1::A::Base<char>' found}} expected-note 2{{declared here}}
namespace B { template<typename T> struct Base { typedef T t; }; } // expected-note {{member type 'test1::B::Base<int>' found}}
template<typename T> struct Derived : A::Base<char>, B::Base<int> {
typename Derived::Base<float>::t x; // expected-error {{found in multiple base classes of different types}}
};
class X : A::Base<int> {}; // expected-note 2{{private}}
class Y : A::Base<float> {};
struct Z : A::Base<double> {};
struct Use1 : X, Y {
Base<double> b1; // expected-error {{private}}
Use1::Base<double> b2; // expected-error {{private}}
};
struct Use2 : Z, Y {
Base<double> b1;
Use2::Base<double> b2;
};
struct Use3 : X, Z {
Base<double> b1;
Use3::Base<double> b2;
};
}
namespace test2 {
struct A { static int x; }; // expected-note 4{{member}}
struct B { template<typename T> static T x(); }; // expected-note 4{{member}}
struct C { template<typename T> struct x {}; }; // expected-note 3{{member}}
struct D { template<typename T> static T x(); }; // expected-note {{member}}
template<typename ...T> struct X : T... {};
void f() {
X<A, B>::x<int>(); // expected-error {{found in multiple base classes of different types}}
X<A, C>::x<int>(); // expected-error {{found in multiple base classes of different types}}
X<B, C>::x<int>(); // expected-error {{found in multiple base classes of different types}}
X<A, B, C>::x<int>(); // expected-error {{found in multiple base classes of different types}}
X<A, B, D>::x<int>(); // expected-error {{found in multiple base classes of different types}}
}
}