https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88417
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Last reconfirmed| |2021-08-23
Status|UNCONFIRMED |NEW
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed, Clang and MSVC produces the same expected results.
ICC rejects it:
<source>(36): error: variable template "Y<T2>::x_in_y [with T2=bool]" has
already been defined
X<T> Y<bool>::x_in_y{77};
^
compilation aborted for <source> (code 2)
ASM generation compiler returned: 2
<source>(36): error: variable template "Y<T2>::x_in_y [with T2=bool]" has
already been defined
X<T> Y<bool>::x_in_y{77};
^