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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2021-10-08
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.

Here is another example:
template <auto V1 = 0>
struct s {
    template <auto V2 = []{ return 1; }>
    int foo() { return 0; }
};

int main() {
    s a{};
    return a.foo();
}

---- CUT ----
Note the original example causes clang to ICE :) while this one is accepted.

Reply via email to