<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/60548>60548</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Case1 can be compiled, but case2 fails to compile
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          4465464
      </td>
    </tr>
</table>

<pre>
    #include <iostream>
#include <cuda_runtime.h>

namespace cuco{

    template<typename Key,typename Value>
    class static_multimap{
        public:
 static_multimap(std::size_t capacity);
            __host__ __device__ __forceinline__ static constexpr uint32_t cg_size() noexpect{
 return 100;
            }
    };

 template<typename Key,typename Value>
 static_multimap<Key,Value>::static_multimap(std::size_t capicity){

 }

    template <typename Map>
    void test_non_shmem_pair_retrieve(Map& map){
        auto constexpr cg_size =map.cg_size();
    } 

    template<typename Key,typename Value>
    void test_cuco(){
 cuco::static_multimap<Key,Value>map{100};
        auto constexpr cg_size=map.cg_size();             //case1
 test_non_shmem_pair_retrieve(map);                //case2
 }
}

int main(){
    cuco::test_cuco<int64_t,int64_t>();
}
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyslMGS4iwQx5-GXKixIkQSDznM6Hj56rvulSKkVbYIpELjjvv0W0QnamZ2ardqc1Cgm-7m929QIZiDA6jJ6oWstpmKePRDXRRiVYgia3x7rgnjxmkbW6CEb4wPOIDqCH8l-Zbkz49mHVslh-jQdLA43pzGX6c6CL3SQHXUnpQv90ZKKUXoeqsQCN_guYfkT_-DM2G36TdlI0xx0yZtVQg0oEKjZRctmk71U3B6_frYWKMJf88292dVwDaZ-XMwP0Ei1apX2uCZsDXhs2jpk_LoA0pJpWzhZDSMw70fNBhnjUvzSxaqvQsIb_1Ao3HIWYp-kCkPYRVha-o8vPWg8Vb2ABgHR5d5_mlyUm5vi2nCH2H-Pck5EL65-E9uFzZ_gs28Y5spPBX9UXF6X-j_Kf2dwidvWooQUDrvZDh20MlemUEOgIOBU6KY9jBBx5rWH9RXEf2dClf4lPBtp_rFgxYPuEm5pf-kSW9HGFv_kmmqclz7lO9chUtrp6640_zrU_7mkPShndiOsJ1WAZZTA32J-8p5FuYhEvug-qP8xiHtlHFzGOlKTzxuyPjGOBSFRMKmEX-daUbKbdbWvF3ztcqgXopyJUTBqyo71kq0uuFtnu_LlVC6XGslWCH2JYei0EpnpmY54znLRS6W66JaqOV-v1yxJodKVKotSZFDp4xdWHvqFn44ZCaECLXIV0WVWdWADeNLypiDH3Q0EsbSwzrUac9TEw-BFLk1AcMtChq0UG8SfaqVow1Q7bveWGgJ29AmplsVgNG9MjbQUeTRnMXB1kfEPiRaI_mDwWNsFtp3hO1ShuvfUz_47-mFYbuxrkDYbqz7VwAAAP__npbN2g">