Skip to content

[BUG]: common_type regression from 2.4.0 to 2.5.0 #2013

Closed

Description

@cliffburdick

Is this a duplicate?

Type of Bug

Compile-time Error

Component

libcu++

Describe the bug

The following code on 2.4.0 compiles:

      using out_t = cuda::std::common_type_t<cuda::std::complex<double>, cuda::std::complex<float>>;

In 2.5.0 this error is shown:

/repro/tmp/MatX/build/_deps/cccl-src/libcudacxx/lib/cmake/libcudacxx/../../../include/cuda/std/__type_traits/common_type.h(123): error: class "cuda::std::__4::common_type<cuda::std::__4::complex<double>, cuda::std::__4::complex<float>>" has no member "type"
  using common_type_t = typename common_type<_Tp...>::type;

How to Reproduce

https://godbolt.org/z/xxj1T7Gqa

Expected behavior

No compiler error.

Reproduction link

https://godbolt.org/z/xxj1T7Gqa

Operating System

Ubuntu 22.04

nvidia-smi output

No response

NVCC version

No response

Activity

  1. moved this from Todo to In Review in CCCLon Jul 23, 2024
  2. moved this from In Review to Done in CCCLon Jul 24, 2024
  3. cliffburdick commented on Sep 9, 2024

    @cliffburdick
    ContributorAuthor

    This still occurs in 2.6.0:

    /repro/tmp/MatX/build/_deps/cccl-src/libcudacxx/lib/cmake/libcudacxx/../../../include/cuda/std/__type_traits/common_type.h(123): error: class "cuda::std::__4::common_type<cuda::std::__4::complex<double>, cuda::std::__4::complex<float>>" has no member "type"
      using common_type_t = typename common_type<_Tp...>::type;
                                                          ^
              detected during:
                instantiation of type "cuda::std::__4::common_type_t<cuda::std::__4::complex<double>, cuda::std::__4::complex<float>>" at line 52 of /repro/tmp/MatX/include/matx/operators/channelize_poly.h
                instantiation of class "matx::detail::ChannelizePolyOp<OpA, FilterType> [with OpA=matx::tensor_t<double, 1, matx::basic_storage<matx::raw_pointer_buffer<double, matx::matx_allocator<double>>>, matx::tensor_desc_t<cuda::std::__4::array<matx::index_t, 1UL>, cuda::std::__4::array<matx::index_t, 1UL>, 1>>, FilterType=matx::tensor_t<float, 1, matx::basic_storage<matx::raw_pointer_buffer<float, matx::matx_allocator<float>>>, matx::tensor_desc_t<cuda::std::__4::array<matx::index_t, 1UL>, cuda::std::__4::array<matx::index_t, 1UL>, 1>>]" at line 162 of /repro/tmp/MatX/include/matx/operators/channelize_poly.h
                instantiation of "auto matx::channelize_poly(const InType &, const FilterType &, matx::index_t, matx::index_t) [with InType=matx::tensor_t<double, 1, matx::basic_storage<matx::raw_pointer_buffer<double, matx::matx_allocator<double>>>, matx::tensor_desc_t<cuda::std::__4::array<matx::index_t, 1UL>, cuda::std::__4::array<matx::index_t, 1UL>, 1>>, FilterType=matx::tensor_t<float, 1, matx::basic_storage<matx::raw_pointer_buffer<float, matx::matx_allocator<float>>>, matx::tensor_desc_t<cuda::std::__4::array<matx::index_t, 1UL>, cuda::std::__4::array<matx::index_t, 1UL>, 1>>]" at line 215 of /repro/tmp/MatX/test/00_transform/ChannelizePoly.cu
    
    
  4. jrhemstad commented on Sep 9, 2024

    @jrhemstad
    Collaborator

    @cliffburdick reports that he is still seeing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions