[Bug c++/97446] gcc accepts an unnamed struct

2020-10-15 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97446 --- Comment #2 from Jonathan Wakely --- Just like PR 97401. Please try to remember that diagnostics are not required for errors in uninstantiated templates, so it's not a bug.

[Bug libstdc++/97415] Invalid pointer comparison in stringbuf::str() (reported by pointer-compare AddressSanitizer)

2020-10-15 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97415 Jonathan Wakely changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug libstdc++/97449] [11 Regression] libstdc++ cannot be compiled with clang after 3427e31331677ca826c5588c87924214f7e5c54b

2020-10-15 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97449 Jonathan Wakely changed: What|Removed |Added Last reconfirmed||2020-10-15 Ever confirmed|0

[Bug libstdc++/97449] [11 Regression] libstdc++ cannot be compiled with clang after 3427e31331677ca826c5588c87924214f7e5c54b

2020-10-15 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97449 Jonathan Wakely changed: What|Removed |Added Target Milestone|--- |11.0 Known to fail|

[Bug target/18469] configure incorrectly defines gid_t

2020-10-15 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=18469 Jonathan Wakely changed: What|Removed |Added Status|NEW |WAITING --- Comment #6 from Jonathan W

[Bug libstdc++/97465] cross build gcc with vtv enabled failed. Cannot find out headers in glibc why?

2020-10-16 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97465 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |WAITING Ever confirmed|0

[Bug libstdc++/97465] cross build gcc with vtv enabled failed. Cannot find out headers in glibc why?

2020-10-16 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97465 --- Comment #2 from Jonathan Wakely --- e.g. what kind of cross build? We're not psychic.

[Bug libstdc++/97485] std::call_once crashes at runtime on glibc if not linked to libpthread: terminate called after throwing an instance of 'std::system_error': what(): Unknown error -1

2020-10-19 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97485 --- Comment #3 from Jonathan Wakely --- Looks like a dup of PR 55394

[Bug libstdc++/97132] assume_aligned is not constexpr

2020-10-19 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97132 Jonathan Wakely changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|---

[Bug libstdc++/55394] Using call_once without -lpthread compiles without warning

2020-10-20 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55394 --- Comment #11 from Jonathan Wakely --- It's not plausible because it doesn't work for non-pthreads targets where gthr-default.h is not gthr-posix.h We can't use pthread_once anyway, see PR 66146, so I'm rewriting it entirely in terms of either

[Bug libstdc++/95917] coroutine functions leak under freestanding mode causing dependencies and binary bloat.

2020-10-20 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95917 Jonathan Wakely changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug libstdc++/95917] coroutine functions leak under freestanding mode causing dependencies and binary bloat.

2020-10-20 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95917 Jonathan Wakely changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug libstdc++/59325] Provide a way to disable deprecated warnings

2020-10-20 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59325 Jonathan Wakely changed: What|Removed |Added Last reconfirmed||2020-10-20 Status|UNCONFIR

[Bug libstdc++/59325] Provide a way to disable deprecated warnings

2020-10-20 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59325 --- Comment #7 from Jonathan Wakely --- (In reply to andysem from comment #4) > I just think that all these hoops could be avoided if libstdc++ was a little > more friendly in this regard. After all, there's no harm in using e.g. > auto_ptr in C+

[Bug libstdc++/59325] Provide a way to disable deprecated warnings

2020-10-20 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59325 Jonathan Wakely changed: What|Removed |Added Status|WAITING |NEW Keywords|

[Bug libstdc++/97512] Move std::ranges::subrange structured bindings stuff from to

2020-10-21 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97512 Jonathan Wakely changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org Last

[Bug libstdc++/97512] Move std::ranges::subrange structured bindings stuff from to

2020-10-21 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97512 Jonathan Wakely changed: What|Removed |Added Target Milestone|--- |11.0 Status|ASSIGNED

[Bug c++/97517] New: _Up = 'nullptr_type' not supported by simple_type_specifier'nullptr_type' not supported by direct_abstract_declarator

2020-10-21 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97517 Bug ID: 97517 Summary: _Up = 'nullptr_type' not supported by simple_type_specifier'nullptr_type' not supported by direct_abstract_declarator Product: gcc Version:

[Bug c++/97517] _Up = 'nullptr_type' not supported by simple_type_specifier'nullptr_type' not supported by direct_abstract_declarator

2020-10-21 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97517 Jonathan Wakely changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug c++/97518] Improving static_assert diagnostics

2020-10-21 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97518 --- Comment #2 from Jonathan Wakely --- A related case I encounter often is: static_assert( sizeof(T) == 4 ); if the assertion fails I would like to know what the size is, rather than just "not 4", so I have to add something like Barry's verify

[Bug preprocessor/97537] gcc -H Option Issue, incomplete dependency tree listing

2020-10-23 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97537 --- Comment #1 from Jonathan Wakely --- But the compiler never sees that #include, because it's guarded by the #ifndef The -H option is not a general purpose dependency scanner, it just shows the result of preprocessing. The documentation is cle

[Bug preprocessor/97537] gcc -H Option Issue, incomplete dependency tree listing

2020-10-23 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97537 --- Comment #2 from Jonathan Wakely --- Oh sorry, I misread your example. The second #include "header3.h" is indeed reached. The header is skipped due to the optimization described at https://gcc.gnu.org/onlinedocs/cpp/Once-Only-Headers.html so t

[Bug c++/97544] -Wtype-limits triggered for comparison to template argument

2020-10-23 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97544 --- Comment #2 from Jonathan Wakely --- It's right, but it's not helpful. There are other instantiations of the template where the condition isn't always true, and users shouldn't have to write the condition as (N != 0 && i < N) just to silence t

[Bug c++/96742] [10/11 Regression] "warning: comparison of unsigned expression in ‘< 0’ is always false" with dependent values

2020-10-23 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96742 --- Comment #4 from Jonathan Wakely --- (In reply to William Throwe from comment #2) > This warns if passed an array of length 0 because the for-loop condition is > always false. Any change I can make to fix it seems to make the code worse. > I

[Bug c++/96742] [10/11 Regression] "warning: comparison of unsigned expression in ‘< 0’ is always false" with dependent values

2020-10-23 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96742 --- Comment #5 from Jonathan Wakely --- Oh and since C++17 you can do: if constexpr (N != 0) for (size_t i = 0; i < N; ++i) { ret += i * x[i]; } but it still shouldn't be necessary :-)

[Bug c++/97569] Declaring a struct in a field declaration of another struct. gcc and clang difference.

2020-10-25 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97569 --- Comment #1 from Jonathan Wakely --- (In reply to Anders Granlund from comment #0) > The interesting thing is that if we replace struct S with struct S {} > both compilers agree on rejecting the program. I don't see any struct S in the ex

[Bug c++/97572] [c++ 20] Constraining is broken

2020-10-25 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97572 --- Comment #1 from Jonathan Wakely --- I think GCC is correct to reject this. any(t) is not a valid constraint.

[Bug c++/97563] undefined reference to `std::__cxx11::basic_string, std::allocator >::reserve()'

2020-10-25 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97563 Jonathan Wakely changed: What|Removed |Added Resolution|FIXED |INVALID

[Bug libstdc++/96817] __cxa_guard_acquire unsafe against dynamically loaded pthread

2020-10-25 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96817 --- Comment #19 from Jonathan Wakely --- I don't really care about test failures for non-standard configurations like that.

[Bug driver/97574] Allow for nul output with Windows

2020-10-26 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97574 --- Comment #1 from Jonathan Wakely --- I think "nul" should work, but it looks like the error is in the linker, ld.exe, not GCC.

[Bug c++/97569] Declaring a struct in a field declaration of another struct. gcc and clang difference.

2020-10-26 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97569 --- Comment #3 from Jonathan Wakely --- Ah right, so int main() { struct A { struct B *b; struct C {} *c; }; using U = B; using V = C; } For the `struct C {}` case that explicitly defines

[Bug driver/97574] Allow for nul output with Windows

2020-10-26 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97574 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug libstdc++/97570] avr-gcc: error: 'void* memalign' redeclared as different kind of entity

2020-10-26 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97570 Jonathan Wakely changed: What|Removed |Added Ever confirmed|0 |1 Assignee|unassigned at gcc

[Bug c++/97572] [c++ 20] Constraining is broken

2020-10-26 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97572 Jonathan Wakely changed: What|Removed |Added Keywords||diagnostic --- Comment #3 from Jonatha

[Bug libstdc++/97561] coroutine_handle doesn't have inheritance

2020-10-26 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97561 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug libstdc++/97561] coroutine_handle doesn't have inheritance

2020-10-26 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97561 --- Comment #2 from Jonathan Wakely --- Do you have a real world use case where the inheritance is actually required?

[Bug libstdc++/97570] avr-gcc: error: 'void* memalign' redeclared as different kind of entity

2020-10-26 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97570 --- Comment #2 from Jonathan Wakely --- Thanks for the report. It's fixed on the development trunk now, but I will also backport it to the release branches.

[Bug c++/97562] NRVO is very fragile (adding an extra scope breaks the optimization)

2020-10-26 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97562 --- Comment #1 from Jonathan Wakely --- Dup of PR 51571 ?

[Bug libstdc++/97570] avr-gcc: error: 'void* memalign' redeclared as different kind of entity

2020-10-26 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97570 --- Comment #3 from Jonathan Wakely --- (In reply to Matwey V. Kornilov from comment #0) > Then gcc and libstdc++ are compiled and installed successfully without any > further errors. P.S. this is great news. I've been meaning to check this myse

[Bug libstdc++/70940] pmr::resource_adaptor requires optional allocator requirements and incorrectly aligns returned pointers.

2020-10-27 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70940 --- Comment #13 from Jonathan Wakely --- Should be fixed at g:01079b6a9236bd467b445fafaff2659840789a85

[Bug libstdc++/70940] pmr::resource_adaptor requires optional allocator requirements and incorrectly aligns returned pointers.

2020-10-27 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70940 --- Comment #14 from Jonathan Wakely --- P.S. if that failure only appeared recently it would be more useful to mail the libstdc++ list than to add a comment to an old bug that hasn't been touched in years.

[Bug c++/97584] ADL inconsistency when calling the stream operator with x << y or with operator<<(x,y)

2020-10-27 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97584 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/51577] dependent name lookup finds operator in global namespace

2020-10-27 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51577 Jonathan Wakely changed: What|Removed |Added CC||andrea_iob at hotmail dot com --- Comm

[Bug c++/51577] dependent name lookup finds operator in global namespace

2020-10-27 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51577 Jonathan Wakely changed: What|Removed |Added CC||zhonghao at pku dot org.cn --- Comment

[Bug c++/86577] non-ADL name lookup for operator<< at instantiation time?

2020-10-27 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86577 Jonathan Wakely changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRM

[Bug c++/51577] dependent name lookup finds operator in global namespace

2020-10-27 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51577 Jonathan Wakely changed: What|Removed |Added CC||tonvandenheuvel at gmail dot com ---

[Bug c++/83035] Using decltype fails with an operator using non-ADL lookup

2020-10-27 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83035 Jonathan Wakely changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRM

[Bug c++/51577] dependent name lookup finds operator in global namespace

2020-10-27 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51577 Jonathan Wakely changed: What|Removed |Added CC||barry.revzin at gmail dot com --- Comm

[Bug c++/70099] Function found by ADL, but shouldn't be visible at point of definition

2020-10-27 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70099 Jonathan Wakely changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/86465] [8/9/10/11 Regression] C++17 triggers: ‘’ may be used uninitialized in this function

2020-10-27 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86465 --- Comment #10 from Jonathan Wakely --- Created attachment 49449 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49449&action=edit preprocessed source, unreduced, gzipped Here's another example that produces this kind of warning, this time

[Bug tree-optimization/97595] New: [11 Regression] warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]

2020-10-27 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97595 Bug ID: 97595 Summary: [11 Regression] warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] Product: gcc Version: 11.0 Status: UNCONFIRMED Sev

[Bug tree-optimization/97595] [11 Regression] warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]

2020-10-27 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97595 --- Comment #2 from Jonathan Wakely --- Reduced: #include template void std::basic_iostream::swap(basic_iostream&); The preprocessed code is no smaller, but this should only generate code for the problematic function, not the entire class and

[Bug tree-optimization/97595] [11 Regression] warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]

2020-10-27 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97595 --- Comment #1 from Jonathan Wakely --- Created attachment 49452 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49452&action=edit preprocessed source, unreduced, gzipped

[Bug libstdc++/95609] span could have better layout

2020-10-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95609 Jonathan Wakely changed: What|Removed |Added Status|NEW |RESOLVED Target Milestone|---

[Bug libstdc++/95592] Collision with struct _Cosh when Cross compiling libstdc++

2020-10-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95592 Jonathan Wakely changed: What|Removed |Added Keywords||build Target Milestone|---

[Bug c++/95567] Defaulted virtual <=> has the wrong behavior

2020-10-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95567 Jonathan Wakely changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug c++/95557] __STDCPP_DEFAULT_NEW_ALIGNMENT__ is int instead of size_t

2020-10-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95557 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug libstdc++/89610] Move-assigning a pmr container sometimes copies the elements instead of moving them

2020-10-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89610 Jonathan Wakely changed: What|Removed |Added Status|NEW |RESOLVED Assignee|unassigned

[Bug libstdc++/92124] std::vector copy-assigning when it should move-assign.

2020-10-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92124 Jonathan Wakely changed: What|Removed |Added CC||arthur.j.odwyer at gmail dot com ---

[Bug libstdc++/94268] std::filebuf is extremely (at least 10x) slow on windows compared to Linux. Even much slower MSVC STL with terrible ABI.

2020-10-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94268 Jonathan Wakely changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug libstdc++/97362] [8/9/10 Regression] `__deref` in in debug mode clashes with internal macro in Windows system header

2020-10-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97362 Jonathan Wakely changed: What|Removed |Added Summary|[8/9/10/11 Regression] |[8/9/10 Regression]

[Bug libstdc++/65114] char_traits::copy violates memcpy constraints, own postcondition

2020-10-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65114 Jonathan Wakely changed: What|Removed |Added Status|NEW |SUSPENDED --- Comment #3 from Jonathan

[Bug libstdc++/60630] FAIL: 21_strings/basic_string/literals/types.cc (test for excess errors)

2020-10-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60630 Jonathan Wakely changed: What|Removed |Added Last reconfirmed||2020-10-28 Status|UNCONFIR

[Bug libstdc++/65113] string::copy violates traits requirements

2020-10-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65113 Jonathan Wakely changed: What|Removed |Added Resolution|--- |INVALID Status|NEW

[Bug libstdc++/60630] FAIL: 21_strings/basic_string/literals/types.cc (test for excess errors)

2020-10-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60630 Jonathan Wakely changed: What|Removed |Added Resolution|--- |WORKSFORME Status|WAITING

[Bug c++/97629] New: Difference of addresses of array elements not a constant expression

2020-10-29 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97629 Bug ID: 97629 Summary: Difference of addresses of array elements not a constant expression Product: gcc Version: 10.2.1 Status: UNCONFIRMED Keywords: rejects-va

[Bug c++/97566] [[no_unique_address]] causes miscompiles when mixed with EBO in constexpr context

2020-10-29 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97566 Jonathan Wakely changed: What|Removed |Added Last reconfirmed||2020-10-29 Status|UNCONFIR

[Bug c++/97632] New: unhelpful -Winit-list-lifetime warning for default-initialized object in unevaluated context

2020-10-29 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97632 Bug ID: 97632 Summary: unhelpful -Winit-list-lifetime warning for default-initialized object in unevaluated context Product: gcc Version: 10.2.1 Status: UNCONFIRMED

[Bug libstdc++/83077] sso-string @ gnu-versioned-namespace.

2020-10-30 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83077 Jonathan Wakely changed: What|Removed |Added Target Milestone|11.0|---

[Bug libstdc++/96958] Long Double in Hash Table policy forces soft-float calculations

2020-10-30 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96958 Jonathan Wakely changed: What|Removed |Added Target Milestone|--- |11.0 --- Comment #6 from Jonathan Wake

[Bug libstdc++/96958] Long Double in Hash Table policy forces soft-float calculations

2020-10-30 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96958 Jonathan Wakely changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug target/97653] New: Incorrect long double calculation with -mabi=ibmlongdouble

2020-10-31 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97653 Bug ID: 97653 Summary: Incorrect long double calculation with -mabi=ibmlongdouble Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Prio

[Bug target/97653] Incorrect long double calculation with -mabi=ibmlongdouble

2020-10-31 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97653 --- Comment #1 from Jonathan Wakely --- Created attachment 49479 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49479&action=edit Assembly code

[Bug target/97653] Incorrect long double calculation with -mabi=ibmlongdouble

2020-10-31 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97653 --- Comment #2 from Jonathan Wakely --- Without -mabilongdouble the result is correct. If configured with --with-long-double-format=ibm the result is correct with any -mabi option.

[Bug target/97653] Incorrect long double calculation with -mabi=ibmlongdouble

2020-10-31 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97653 --- Comment #3 from Jonathan Wakely --- int printf(const char*, ...); const unsigned long k = 256; int main() { long double r[] = { 0.1L, 0.2L, 0.5L, 0.9L }; for (int i = 0; i < 4; ++i) { unsigned long j = k * r[i]; printf("%lu

[Bug target/94200] -mabi=ibmlongdouble and -mlong-double-128 produces error

2020-10-31 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94200 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Target Milestone|---

[Bug libstdc++/96958] Long Double in Hash Table policy forces soft-float calculations

2020-10-31 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96958 --- Comment #9 from Jonathan Wakely --- N.B. the calls to __builtin_ceill and __builtin_floorl also need to be changed to avoid implicit conversions to long double.

[Bug libstdc++/96958] Long Double in Hash Table policy forces soft-float calculations

2020-10-31 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96958 --- Comment #10 from Jonathan Wakely --- There are a few other places doing unnecessary long double arithmetic, e.g. r11-4588-60d9f254876a00260992b2f37639ef4d82d9db8f

[Bug libstdc++/97654] std::filesystem::copy() can't overwrite existing symlink

2020-10-31 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97654 --- Comment #2 from Jonathan Wakely --- (In reply to devl from comment #0) > Created attachment 49480 [details] > Full output with -v > > std::filesystem::copy() with copy_options = copy_symlinks | > overwrite_existing does not overwrite existin

[Bug c++/97658] Tired of having to change make files on every new version. Damnit!

2020-10-31 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97658 --- Comment #1 from Jonathan Wakely --- The compiler is telling you your code has undefined behaviour. If you write code that conforms to the rules of the C++ language, you won't get that warning. Don't change your makefiles, fix your code. I

[Bug libstdc++/97659] Invalid pointer subtraction in vector::insert() (reported by pointer-subtract AddressSanitizer)

2020-10-31 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97659 --- Comment #1 from Jonathan Wakely --- This looks like a bug in the sanitizer. I assume it's triggering because the memory returned by the allocator doesn't refer to an array, so the two addresses are not pointing to subobjects of a single objec

[Bug libstdc++/77691] [8/9/10/11 regression] experimental/memory_resource/resource_adaptor.cc FAILs

2020-10-31 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77691 --- Comment #44 from Jonathan Wakely --- It looks like mingw* has the same problem: https://sourceforge.net/p/mingw-w64/bugs/778/ mlloc returns memory aligned to 8 bytes, GCC's stddef.h says 16 is a fundamental alignment. Even worse, mingw's own

[Bug libstdc++/97659] Invalid pointer subtraction in vector::insert() (reported by pointer-subtract AddressSanitizer)

2020-11-01 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97659 --- Comment #5 from Jonathan Wakely --- (In reply to Jakub Jelinek from comment #3) > That sanitizer diagnoses > http://eel.is/c++draft/expr.add#5.3 > which still seems UB. Not since http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p0593r

[Bug libstdc++/97659] Invalid pointer subtraction in vector::insert() (reported by pointer-subtract AddressSanitizer)

2020-11-01 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97659 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug target/97025] In -m32 mode the alignment of pointers returned by malloc or operator new is less than alignof(std::max_align_t)

2020-11-01 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97025 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug c++/97675] GCC does not allow turning off the warning for exceptions being caught by an earlier handler

2020-11-02 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97675 Jonathan Wakely changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug tree-optimization/97690] New: (cond ? 2 : 0) is not optimized to int(cond) << 1

2020-11-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97690 Bug ID: 97690 Summary: (cond ? 2 : 0) is not optimized to int(cond) << 1 Product: gcc Version: 11.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: normal

[Bug tree-optimization/97690] (cond ? 2 : 0) is not optimized to int(cond) << 1

2020-11-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97690 --- Comment #1 from Jonathan Wakely --- It seems to be target-independent. For aarch64, -O3 and -Os both give: f(bool): tst w0, 255 csetw0, ne lsl w0, w0, 1 ret g(bool): ubfiz w0, w0, 1, 8

[Bug tree-optimization/97690] (cond ? 2 : 0) is not optimized to int(cond) << 1

2020-11-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97690 --- Comment #2 from Jonathan Wakely --- More generally, Clang seems to reliably turn cond ? (2<

[Bug c++/97658] Tired of having to change make files on every new version. Damnit!

2020-11-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97658 --- Comment #4 from Jonathan Wakely --- Nonsense. Your code is buggy, the warning tells you about it. If you don't want to know that your code has undefined behaviour, don't enable warnings.

[Bug libstdc++/66146] call_once not C++11-compliant on ppc64le

2020-11-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66146 Jonathan Wakely changed: What|Removed |Added Target Milestone|--- |11.0

[Bug libstdc++/55394] Using call_once without -lpthread compiles without warning

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

[Bug libstdc++/84323] call_once uses TLS even when once_flag is set

2020-11-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84323 Jonathan Wakely changed: What|Removed |Added Target Milestone|--- |11.0 Status|NEW

[Bug libstdc++/55394] Using call_once without -lpthread compiles without warning

2020-11-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55394 Bug 55394 depends on bug 84323, which changed state. Bug 84323 Summary: call_once uses TLS even when once_flag is set https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84323 What|Removed |Added --

[Bug libstdc++/84323] call_once uses TLS even when once_flag is set

2020-11-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84323 Jonathan Wakely changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug libstdc++/66146] call_once not C++11-compliant on ppc64le

2020-11-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66146 Bug 66146 depends on bug 84323, which changed state. Bug 84323 Summary: call_once uses TLS even when once_flag is set https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84323 What|Removed |Added --

[Bug libstdc++/55394] Using call_once without -lpthread compiles without warning

2020-11-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55394 Jonathan Wakely changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug libstdc++/66146] call_once not C++11-compliant on ppc64le

2020-11-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66146 --- Comment #33 from Jonathan Wakely --- Fixed for linux targets, not others though.

[Bug libstdc++/39909] non-TLS version of std::call_once causes terminate

2020-11-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39909 Jonathan Wakely changed: What|Removed |Added Target Milestone|--- |4.4.1

[Bug libstdc++/66146] call_once not C++11-compliant on ppc64le

2020-11-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66146 --- Comment #34 from Jonathan Wakely --- Untested sketch of a solution for Solaris and BSDs: https://gcc.gnu.org/pipermail/gcc-patches/2020-November/557928.html

<    1   2   3   4   5   6   7   8   9   10   >