[Bug libstdc++/89855] Inconsistent global namespace overload sets from #include

2024-03-28 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89855 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #12 from

[Bug libstdc++/89855] Inconsistent global namespace overload sets from #include

2024-03-26 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89855 Jonathan Wakely changed: What|Removed |Added CC||vincenzo.innocente at cern dot ch

[Bug libstdc++/89855] Inconsistent global namespace overload sets from #include

2024-03-26 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89855 Jonathan Wakely changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug libstdc++/89855] Inconsistent global namespace overload sets from #include

2022-02-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89855 --- Comment #10 from Jonathan Wakely --- Ville brought a related case to my attention. With Glibc this compiles, and finds libc's ::sqrt(double) #include int i = sqrt(0); But on Solaris it doesn't even compile. Solaris libc provides all three

[Bug libstdc++/89855] Inconsistent global namespace overload sets from #include

2021-11-17 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89855 Jonathan Wakely changed: What|Removed |Added CC||oscar.smith@juliacomputing.

[Bug libstdc++/89855] Inconsistent global namespace overload sets from #include

2020-04-29 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89855 --- Comment #8 from Jonathan Wakely --- That's one possible reading, but I don't think the text you quote is precise enough to say that reading is definitely correct or not. If that is what it says, it might be unintentional. That paragraph is

[Bug libstdc++/89855] Inconsistent global namespace overload sets from #include

2020-04-29 Thread foom at fuhm dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89855 --- Comment #7 from James Y Knight --- Ugh, GCC doesn't wrap quoted text? Re-posting the quote from http://eel.is/c++draft/headers#5 without a quote marker... """ Except as noted in [library] through [thread] and [depr], the contents of each

[Bug libstdc++/89855] Inconsistent global namespace overload sets from #include

2020-04-29 Thread foom at fuhm dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89855 --- Comment #6 from James Y Knight --- Someone has pointed out to me that the standard actually says "name", which I had internalized as meaning "declaration", but it doesn't. This arguably does make the GCC implementation non-compliant with the

[Bug libstdc++/89855] Inconsistent global namespace overload sets from #include

2019-03-27 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89855 --- Comment #5 from Jonathan Wakely --- (In reply to Andrew Pinski from comment #4) > DR 456: PR6257 That's what established the status quo, which James referred to as "While may or may not declare functions in ::std::, and may or may not

[Bug libstdc++/89855] Inconsistent global namespace overload sets from #include

2019-03-27 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89855 --- Comment #4 from Andrew Pinski --- DR 456: PR6257

[Bug libstdc++/89855] Inconsistent global namespace overload sets from #include

2019-03-27 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89855 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug libstdc++/89855] Inconsistent global namespace overload sets from #include

2019-03-27 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89855 --- Comment #2 from Jonathan Wakely --- The same problem exists for ::div in , and for ::abs in both and . Calling ::abs(INT_MAX + 1LL) or abs(INT_MAX + 1LL) will overflow and so is undefined. Clang warns about this and suggests using std::abs

[Bug libstdc++/89855] Inconsistent global namespace overload sets from #include

2019-03-27 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89855 --- Comment #1 from Andrew Pinski --- I there is a related defect report against the c++ standard about this exact issue.