[Bug c++/113110] GCC rejects call to more specialized const char array version with string literal

2023-12-22 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113110 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl ---

[Bug c++/113110] GCC rejects call to more specialized const char array version with string literal

2023-12-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113110 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c++/113110] GCC rejects call to more specialized const char array version with string literal

2023-12-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113110 --- Comment #4 from Andrew Pinski --- (In reply to Jason Liam from comment #3) > (In reply to Andrew Pinski from comment #1) > > > I suspect this is either a bug or an extension for MSVC. > > Are you sure? I mean if you add another template

[Bug c++/113110] GCC rejects call to more specialized const char array version with string literal

2023-12-21 Thread jlame646 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113110 --- Comment #3 from Jason Liam --- (In reply to Andrew Pinski from comment #1) > I suspect this is either a bug or an extension for MSVC. Are you sure? I mean if you add another template parameter `U` to the second parameter and use it then

[Bug c++/113110] GCC rejects call to more specialized const char array version with string literal

2023-12-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113110 --- Comment #2 from Andrew Pinski --- I am almost want to say MSVC never implmented DR 214 which addresses this. https://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#214

[Bug c++/113110] GCC rejects call to more specialized const char array version with string literal

2023-12-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113110 --- Comment #1 from Andrew Pinski --- EDG 6.5 also rejects the code: ``` (21): error: more than one instance of overloaded function "compare" matches the argument list: function template "int compare(const char (&)[N], const char