[Bug c++/90189] Spurious "error: parameter packs not expanded" when a dependent name coincides

aleksey.covacevice at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Jul 15 20:46:41 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90189

Aleksey Covacevice <aleksey.covacevice at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aleksey.covacevice at gmail dot co
                   |                            |m

--- Comment #1 from Aleksey Covacevice <aleksey.covacevice at gmail dot com> ---
Another such situation:

    template<typename>
    struct any;
    template<typename T>
    using any_t = typename any<T>::type;
    template<typename... type>
    struct str { any_t<any_t<str<type...>>> func(); };

Changing `type` to something else, in either `any_t` or `str`, allows the code
to compile.

5.1.0 accepts the code; 5.2.0 onward reject it.

Possibly related to #61022.


More information about the Gcc-bugs mailing list