[Bug c++/124357] Type inference depends on the order of arguments

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Mar 7 05:25:18 GMT 2026


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|rejects-valid               |needs-stdcheck

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
clang and EDG rejects both examples.
But MSVC follows GCC here and accepts the first and rejects the second.

so it is 2 vs 2. Maybe there is a defect report here.


More information about the Gcc-bugs mailing list