[Bug libstdc++/97311] Bug in std::seed_seq::generate() when integer type has more than 32 bits

2020-10-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97311 --- Comment #2 from Jonathan Wakely --- Or something like: auto __b = [__begin, __n](size_t __i) -> _Type& { return __begin[__i % __n]; }; auto __b32 = [__b](size_t __i) { return (uint32_t)__b(__i); }; for

[Bug libstdc++/97311] Bug in std::seed_seq::generate() when integer type has more than 32 bits

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

[Bug libstdc++/63332] problem with VERIFY in ext/random/k_distribution/operators/serialize.cc execution test

2020-10-08 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63332 Jonathan Wakely changed: What|Removed |Added Target||i386-pc-solaris2.11

[Bug libstdc++/70358] Several 26_numerics/random/binomial_distribution/operators etc. tests FAIL

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

[Bug libstdc++/82584] div by zero in random distribution

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

[Bug libstdc++/86402] Several targets missing AC_DEFINE(_GLIBCXX_USE_RANDOM_TR1) in crossconfig.m4

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

[Bug libstdc++/82584] div by zero in random distribution

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

[Bug libstdc++/82584] div by zero in random distribution

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

[Bug libstdc++/97311] Bug in std::seed_seq::generate() when integer type has more than 32 bits

2020-10-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97311 --- Comment #5 from Jonathan Wakely --- I don't see how manually written arithmetic with explicit % operations is going to beat using built-in types that do that automatically. If 64-bit arithmetic is faster than 32-bit arithmetic, I would

[Bug libstdc++/97311] Bug in std::seed_seq::generate() when integer type has more than 32 bits

2020-10-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97311 --- Comment #4 from Jonathan Wakely --- (In reply to Kristian Spangsege from comment #3) > bonus, the code will work on platforms that do not have std::uint32_t. GCC doesn't work on such platforms, and other parts of libstdc++ already assume it

[Bug libstdc++/97369] undefined reference to std::_***""

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

[Bug c++/97406] New: Truncated pointer-to-member type in concept satisfaction error

2020-10-13 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97406 Bug ID: 97406 Summary: Truncated pointer-to-member type in concept satisfaction error Product: gcc Version: 10.2.1 Status: UNCONFIRMED Keywords: diagnostic

[Bug c++/97407] New: Expanding alias template in concept satisfaction error is undesirable

2020-10-13 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97407 Bug ID: 97407 Summary: Expanding alias template in concept satisfaction error is undesirable Product: gcc Version: 10.2.1 Status: UNCONFIRMED Keywords:

[Bug c++/97407] Expanding alias template in concept satisfaction error is undesirable

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

[Bug c++/95310] [concepts] Unrelated template parameters printed in diagnostic

2020-10-13 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95310 --- Comment #2 from Jonathan Wakely --- Fixed on trunk by r11-3372-d6587211c02c4e2566c4e545c09757f3fbb7adab

[Bug c++/97407] Expanding alias template in concept satisfaction error is undesirable

2020-10-13 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97407 --- Comment #1 from Jonathan Wakely --- Reduced: template T&& declval; template decltype(declval().begin()) begin_impl(R&); template using iter_type_impl = decltype(begin_impl(declval())); template struct unrelated { using erm =

[Bug c++/97435] Lifetime of temporaries not correctly extending when optiimzation are enabled

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

[Bug c++/97443] gcc rejects an abstract class that could be used as a function return type due to the new rules

2020-10-15 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97443 Jonathan Wakely changed: What|Removed |Added Keywords||rejects-valid

[Bug c++/86252] Abstract class in function return type

2020-10-15 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86252 Jonathan Wakely changed: What|Removed |Added CC||tangyixuan at mail dot dlut.edu.cn

[Bug c++/17232] [DR 1640] classes and class template specializations treated differently w.r.t. core issue #337

2020-10-15 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=17232 Jonathan Wakely changed: What|Removed |Added Status|SUSPENDED |NEW See Also|

[Bug c++/70248] constexpr initialization with unspecified equality expression accepted

2020-10-15 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70248 --- Comment #8 from Jonathan Wakely --- In gcc/cp/typeck.c:cp_build_binary_op this warning should be an error during constant evaluation for EQ_EXPR and NE_EXPR: if (complain & tf_warning) { tree stripped_orig_op0 =

[Bug c++/56951] Poor diagnostics for error: invalid abstract return type 'XXX'

2020-10-15 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56951 Jonathan Wakely changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c++/70248] constexpr initialization with unspecified equality expression accepted

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

[Bug c++/85474] unspecified string literal comparison accepted in constexpr context

2020-10-15 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85474 --- Comment #2 from Jonathan Wakely --- Is this a dup of PR 70248?

[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 --- Comment #4 from Jonathan Wakely --- Fixed on trunk so far. I'm undecided whether it needs to be backported. Although the comparison with null is formally unspecified, I think all the compilers we support behave as expected.

[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 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 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

[Bug c++/97266] "enum constant in boolean context" warning seems incorrect

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

[Bug c++/97256] auto function return different result

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

[Bug libstdc++/90295] Please define ~exception_ptr inline

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

[Bug libstdc++/90295] Please define ~exception_ptr inline

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

[Bug libstdc++/92356] Missed optimization of std::find looking for item in array of items [0..n]

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

[Bug libstdc++/90295] Please define ~exception_ptr inline

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

[Bug c++/97198] __is_constructible(int[], int) should return true

2020-10-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97198 --- Comment #4 from Jonathan Wakely --- This is now https://wg21.link/lwg3486

[Bug c++/88115] Incorrect result from alignof in templates, if also using __alignof__.

2020-10-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88115 Jonathan Wakely changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug libstdc++/93542] std::future::wait_for should use monotonic clock

2020-10-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93542 --- Comment #4 from Jonathan Wakely --- Thanks, Mike. I've added the PR number to the ChangeLog file in g:b98d3cc5666f36bf3cbeed7cd6a23483cc5e4eca

[Bug c++/97383] New: Consider special asing diagnostics for customization point objects

2020-10-12 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97383 Bug ID: 97383 Summary: Consider special asing diagnostics for customization point objects Product: gcc Version: 11.0 Status: UNCONFIRMED Keywords: diagnostic

[Bug libstdc++/94823] modulo arithmetic bug in random.tcc

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

[Bug libstdc++/97311] Bug in std::seed_seq::generate() when integer type has more than 32 bits

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

[Bug c++/97383] Consider special casing diagnostics for C++20 customization point objects

2020-10-13 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97383 Jonathan Wakely changed: What|Removed |Added Severity|normal |enhancement Ever confirmed|0

[Bug c++/97401] static int has a default value?

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

[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++/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++/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++/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

[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++/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++/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

[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

[Bug target/92729] [avr] Convert the backend to MODE_CC so it can be kept in future releases

2020-10-09 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92729 --- Comment #8 from Jonathan Wakely --- And please ping patches like https://gcc.gnu.org/pipermail/gcc-patches/2020-August/552844.html if you don't get a review.

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

2020-10-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97362 --- Comment #4 from Jonathan Wakely --- (In reply to frankhb1989 from comment #0) > Case: > > #include > #include N.B. this has nothing to do with . The __deref entity is in which gets included by and all the containers (and a few other

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

2020-10-10 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 Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org

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

2020-10-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97362 --- Comment #3 from Jonathan Wakely --- And add __deref to the list of BADNAMES in doc/xml/manual/appendix_contributing.xml and the testsuite/17_intro/headers/names.cc test.

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

2020-10-10 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|`__deref` in|[8/9/10/11 Regression] |in

[Bug libstdc++/97369] undefined reference to std::_***""

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

[Bug libstdc++/97369] undefined reference to std::_***""

2020-10-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97369 --- Comment #2 from Jonathan Wakely --- If that's a linker error not a run time error, then it looks like you're not using the right GCC to link. It could be that you're compiling with GCC 6.3.0 but then using a different GCC to link, which

[Bug libstdc++/97311] Bug in std::seed_seq::generate() when integer type has more than 32 bits

2020-10-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97311 --- Comment #7 from Jonathan Wakely --- Oops, yes I can, I messed up my test.

[Bug libstdc++/97311] Bug in std::seed_seq::generate() when integer type has more than 32 bits

2020-10-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97311 --- Comment #6 from Jonathan Wakely --- I can't get the algorithm to ever produce an intermediate result that doesn't fit in 32 bits, so I'm not sure there's actually a problem here in practice.

[Bug fortran/97308] OpenBSD bootstrap fails with error: C++ preprocessor "/lib/cpp" fails sanity check

2020-10-06 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97308 --- Comment #3 from Jonathan Wakely --- The /lib/cpp error is a bit misleading, because that's the last thing it tries to find as a C++ compiler, after exhausting g++ -std=c++11 and various other options that fail with: configure:19863: g++

[Bug fortran/97308] OpenBSD bootstrap fails with error: C++ preprocessor "/lib/cpp" fails sanity check

2020-10-06 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97308 --- Comment #5 from Jonathan Wakely --- ld: error: unable to find library -lc Huh, not sure what causes that one.

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

2020-10-14 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|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/97420] error: no matching function for call to 'find_if'

2020-10-14 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97420 --- Comment #1 from Jonathan Wakely --- std::find_if has existed since C++98.

[Bug c++/97420] error: no matching function for call to 'find_if'

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

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

2020-10-14 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97415 --- Comment #2 from Jonathan Wakely --- Oh, it does if I spell the environment variable correctly.

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

2020-10-14 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|NEW |ASSIGNED

[Bug libstdc++/94823] modulo arithmetic bug in random.tcc

2020-10-09 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94823 --- Comment #7 from Jonathan Wakely --- Despite the code being correct, I think it would be better to hoist this branch out of the loop: if (__k == 0) __r2 += __s; else if (__k <= __s) __r2 += __kn +

[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 c++/97237] [10/11 Regression] static_assert does not accept fpermissive code

2020-09-29 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97237 --- Comment #3 from Jonathan Wakely --- (In reply to Toni Neubert from comment #0) > The following valid code: N.B. that's not valid at all. That's why you need to use -fpermissive to compile it. > But this code is valid in all versions: No,

[Bug c++/97237] [10/11 Regression] static_assert does not accept fpermissive code

2020-09-29 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97237 Jonathan Wakely changed: What|Removed |Added Known to fail||10.2.0, 11.0 Last reconfirmed|

[Bug c++/97217] C++ program compiled with GCC crashes

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

[Bug libstdc++/93421] futex.cc use of futex syscall is not time64-compatible

2020-09-24 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93421 --- Comment #6 from Jonathan Wakely --- On second thoughts, we probably don't need to worry about SYS_clock_gettime_time64. We only use SYS_clock_gettime syscalls on old glibc systems where clock_gettime is in librt not libc, and those systems

[Bug preprocessor/96952] __builtin_thread_pointer support cannot be probed

2020-09-29 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96952 --- Comment #7 from Jonathan Wakely --- (In reply to Eric Botcazou from comment #4) > What about detecting the support at configure time and defining a macro > during the compilation? Everyone has been doing this for more that 3 > decades...

[Bug c++/97195] construct_at on a union member is not a constant expression

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

[Bug preprocessor/96952] __builtin_thread_pointer support cannot be probed

2020-09-29 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96952 --- Comment #9 from Jonathan Wakely --- No, I didn't say none of them come from configure. What I meant by "checking anything at configure time" is anything related to the properties of the compiler that ends up including the header. Not

[Bug c++/97253] [c++20] last character not shown when printing out std::array via -Wunused-local-typedefs

2020-09-30 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97253 Jonathan Wakely changed: What|Removed |Added Ever confirmed|0 |1 Keywords|

[Bug libstdc++/93421] futex.cc use of futex syscall is not time64-compatible

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

[Bug c++/97198] __is_constructible(int[], int) should return true

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

[Bug target/97207] [nvptx, build] nvptx.c:3539:38: error: no matching function for call to ‘swap(bracket_vec_t&, bracket_vec_t&)’

2020-09-25 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97207 --- Comment #11 from Jonathan Wakely --- (In reply to rguent...@suse.de from comment #8) > On Fri, 25 Sep 2020, redi at gcc dot gnu.org wrote: > > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97207 > > > > --- Comment #7 from Jonathan Wakely

[Bug target/97207] [nvptx, build] nvptx.c:3539:38: error: no matching function for call to ‘swap(bracket_vec_t&, bracket_vec_t&)’

2020-09-25 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97207 --- Comment #12 from Jonathan Wakely --- (In reply to Richard Biener from comment #9) > diff --git a/gcc/vec.h b/gcc/vec.h > index d73d865cff2..c0e577893a3 100644 > --- a/gcc/vec.h > +++ b/gcc/vec.h > @@ -1546,7 +1546,12 @@ public: >

[Bug target/97207] [nvptx, build] nvptx.c:3539:38: error: no matching function for call to ‘swap(bracket_vec_t&, bracket_vec_t&)’

2020-09-25 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97207 --- Comment #13 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #10) > If you don't want to support assignment you can still support swapping: > > --- a/gcc/vec.h > +++ b/gcc/vec.h > @@ -1546,9 +1546,21 @@ public: >

[Bug target/97207] [nvptx, build] nvptx.c:3539:38: error: no matching function for call to ‘swap(bracket_vec_t&, bracket_vec_t&)’

2020-09-25 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97207 --- Comment #7 from Jonathan Wakely --- (In reply to Richard Biener from comment #4) > That swap couldn't have worked before because auto_vec eventually contains a > pointer into itself. So the patch has improved things from broken to >

[Bug target/97207] [nvptx, build] nvptx.c:3539:38: error: no matching function for call to ‘swap(bracket_vec_t&, bracket_vec_t&)’

2020-09-25 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97207 --- Comment #10 from Jonathan Wakely --- If you don't want to support assignment you can still support swapping: --- a/gcc/vec.h +++ b/gcc/vec.h @@ -1546,9 +1546,21 @@ public: this->m_vec = r.m_vec; r.m_vec = NULL; } +

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

2020-09-25 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96817 --- Comment #13 from Jonathan Wakely --- (In reply to Yuxuan Shui from comment #1) > Example: > > This program normally deadlocks when using linked pthread: > > https://godbolt.org/z/Yrza4e > > But it will throw recursive_init_error when

[Bug c++/97198] __is_constructible(int[], int) should return true

2020-09-25 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97198 --- Comment #2 from Jonathan Wakely --- Hmm. It should be false for construction from no arguments i.e. __is_constructible(int[]). But thanks to parenthesized aggregate init, you can actually do: using T = int[]; T t(1); It's still true

[Bug libstdc++/97211] New: __cxa_guard_acquire fails to detect recursive init in multithreaded code

2020-09-25 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97211 Bug ID: 97211 Summary: __cxa_guard_acquire fails to detect recursive init in multithreaded code Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal

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

2020-09-25 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96817 Jonathan Wakely changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c/97265] new warning with clang build

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

[Bug c++/97256] auto function return different result

2020-10-01 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97256 --- Comment #3 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #2) > Yes, the lambda captures a local variable by value, Duh, sorry, I meant captures a local variables BY REFERENCE. > and then when you invoke > the lambda it

[Bug c++/97256] auto function return different result

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

[Bug c++/97266] "enum constant in boolean context" warning seems incorrect

2020-10-01 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97266 --- Comment #1 from Jonathan Wakely --- (In reply to m farazma from comment #0) > ``` > #include > > enum ValidateFlag : int8_t { >a = 0, b , c > }; > > int main(){ > bool t = static_cast(c); > return static_cast(t); > } > ``` > >

[Bug c++/97266] "enum constant in boolean context" warning seems incorrect

2020-10-01 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97266 --- Comment #3 from Jonathan Wakely --- No, the type is ValidateFlag. It has an underlying type of int8_t, but that just means it has the same size and range of values as int8_t. It's not actually that type.

[Bug libstdc++/78830] std::prev accepts ForwardIterator-s

2020-09-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78830 Jonathan Wakely changed: What|Removed |Added CC||lesley at lesleylai dot info ---

[Bug libstdc++/97232] Iterator category of "std::prev" are not checked

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

[Bug c++/97230] Invocation of non-static member function on a null instance in core constant expression should not be allowed

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

[Bug libstdc++/97232] Iterator category of "std::prev" are not checked

2020-09-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97232 --- Comment #2 from Jonathan Wakely --- If you compile with -D_GLIBCXX_ASSERTIONS then there is a runtime check: /home/jwakely/gcc/11/include/c++/11.0.0/bits/stl_iterator_base_funcs.h:151: constexpr void std::__advance(_InputIterator&,

[Bug c++/97217] C++ program compiled with GCC crashes

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

[Bug libstdc++/78830] std::prev accepts ForwardIterator-s

2020-09-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78830 --- Comment #14 from Jonathan Wakely --- There is an LWG issue requesting clarification in the standard: https://wg21.link/lwg3197 Option B is consistent with the interpretation of libstdc++ (and recent versions of libc++). If Option A or C is

  1   2   3   4   5   6   7   8   9   10   >