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

2020-11-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97653 --- Comment #5 from Jonathan Wakely --- Yep, that fixes the testcases above, thanks. Retrying the libstdc++ tests ...

[Bug libstdc++/92285] Layout of istreambuf_iterator subobject depends on -std mode

2020-11-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92285 --- Comment #9 from Jonathan Wakely --- Now documented too.

[Bug libstdc++/94971] [10/11 Regression] Parallel Mode cannot be used in C++20

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

[Bug libstdc++/97549] [11 Regression] include/pstl rebase breaking

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

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

2020-11-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97362 --- Comment #6 from Jonathan Wakely --- (In reply to frankhb1989 from comment #1) > To clarify a bit: is installed by the VC++ toolchain or WDK, not by > Windows SDK. Nevertheless, it is a system header both MS's CRT and Win32 > headers rely on.

[Bug c++/67135] [thread_local] heap-use-after-free (OS X 10.10.4)

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

[Bug c++/59994] [meta-bug] thread_local

2020-11-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59994 Bug 59994 depends on bug 69775, which changed state. Bug 69775 Summary: thread_local extern variable causes linkage error https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69775 What|Removed |Added --

[Bug c++/69775] thread_local extern variable causes linkage error

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

[Bug c++/77285] [5 Regression] extern thread_local linkage

2020-11-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77285 Jonathan Wakely changed: What|Removed |Added CC||saarraz2 at gmail dot com --- Comment

[Bug c++/66360] thread_local variable needs copy constructor

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

[Bug c++/58366] invocation of thread_local class containing bound function leads to : "Illegal instruction: 4"

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

[Bug c++/59994] [meta-bug] thread_local

2020-11-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59994 Bug 59994 depends on bug 58366, which changed state. Bug 58366 Summary: invocation of thread_local class containing bound function leads to : "Illegal instruction: 4" https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58366 What|Removed

[Bug c++/60702] thread_local initialization

2020-11-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60702 Jonathan Wakely changed: What|Removed |Added CC||tobias.bruell at gmail dot com --- Com

[Bug c++/88292] Static initialization problem with thread_local and templates

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

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

2020-11-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96817 --- Comment #21 from Jonathan Wakely --- The abi_check failures are of course expected if you configure with an option that alters the library ABI.

[Bug c++/96746] Type Casting in template function should not be type-dependent if the type of the conversion result is not type-dependent.

2020-11-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96746 --- Comment #3 from Jonathan Wakely --- The standard says "no diagnostic required". It's not a bug if a compiler accepts the code.

[Bug libstdc++/96657] [9/10/11 Regression] libsupc++.a missing required functions from src/c++98/atomicity.cc when atomic builtins are not supported

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

[Bug c++/95977] No deallocation of temporary in return-statement during constant evaluation

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

[Bug c++/96184] GCC treats "use of local variable with automatic storage from containing function" differently in versions

2020-11-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96184 Jonathan Wakely changed: What|Removed |Added CC||jason at gcc dot gnu.org Key

[Bug c++/88725] fails to deduce template specialization in friend declaration

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

[Bug c++/91618] template-id required to friend a function template, even for a qualified-id

2020-11-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91618 Jonathan Wakely changed: What|Removed |Added CC||haining.cpp at gmail dot com --- Comme

[Bug c++/91618] template-id required to friend a function template, even for a qualified-id

2020-11-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91618 --- Comment #7 from Jonathan Wakely --- >From Bug 88725 gcc fails to deduce that the friend declaration refers to ::func in the below ``` template void func(T); class Cls { friend void ::func(int); }; ``` Rejecting with ``` error: 'voi

[Bug c++/97716] Class's `operator delete`should be implicitly `noexcept`

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

[Bug c++/97720] Sometimes std::current_exception does not work properly in the terminate handler

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

[Bug libstdc++/97719] [11 Regression] "Implement C++20 features for " changed behavior of istreambuf_iterator

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

[Bug libstdc++/97719] [11 Regression] "Implement C++20 features for " changed behavior of istreambuf_iterator

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

[Bug libstdc++/97719] [11 Regression] "Implement C++20 features for " changed behavior of istreambuf_iterator

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

[Bug libstdc++/92546] [10/11 Regression] Large increase in preprocessed file sizes in C++2a mode

2020-11-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92546 --- Comment #10 from Jonathan Wakely --- r11-4269 and r11-4270 made a bit difference on trunk.

[Bug libstdc++/92546] [10/11 Regression] Large increase in preprocessed file sizes in C++2a mode

2020-11-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92546 --- Comment #11 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #10) > r11-4269 and r11-4270 made a bit difference on trunk. s/bit/big/

[Bug c/97702] comma operator does not drop qualifiers during lvalue conversion

2020-11-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97702 --- Comment #4 from Jonathan Wakely --- N.B. http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2593.htm proposes to standardise typeof.

[Bug libstdc++/97728] error: ‘imaxdiv_t’ has not been declared in ‘::’

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

[Bug libstdc++/97729] Link failure due to basic_stringbuf and others when building DLL on MinGW

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

[Bug libstdc++/97729] [11 Regression] Link failure due to basic_stringbuf and others when building DLL on MinGW

2020-11-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97729 Jonathan Wakely changed: What|Removed |Added Keywords||build Summary|Link failure

[Bug libstdc++/97729] [11 Regression] Link failure due to basic_stringbuf and others when building DLL on MinGW

2020-11-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97729 --- Comment #3 from Jonathan Wakely --- It could be a difference in the linker. I'm using the mingw cross-binutils that comes with Fedora: $ /usr/bin/x86_64-w64-mingw32-ld --version GNU ld version 2.32-%{release} Copyright (C) 2019 Free Software

[Bug libstdc++/97731] terminate called in std::experimental::filesystem::recursive_directory_iterator

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

[Bug libstdc++/97731] terminate called in std::experimental::filesystem::recursive_directory_iterator

2020-11-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97731 --- Comment #1 from Jonathan Wakely --- Looks like I fixed it for std::filesystem::recursive_directory_iterator but not the experimental version: if (ecptr ? sp->top().advance(*ecptr) : sp->top().advance()) _M_dirs.swap(sp);

[Bug libstdc++/97729] [11 Regression] Link failure due to basic_stringbuf and others when building DLL on MinGW

2020-11-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97729 --- Comment #5 from Jonathan Wakely --- Yes sorry, I get the same error. I should have tested it first! Working patch on the way ...

[Bug libstdc++/96269] optional comparison with nullopt fails

2020-11-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96269 --- Comment #3 from Jonathan Wakely --- I don't think this is a bug in std::optional, I think it's how C++20 works.

[Bug c++/67453] vtable not emitted for class with no key method and defaulted destructor with attribute((used))

2020-11-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67453 Jonathan Wakely changed: What|Removed |Added Blocks||97729 Last reconfirmed|2015-09-04 00

[Bug libstdc++/96269] optional comparison with nullopt fails

2020-11-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96269 --- Comment #7 from Jonathan Wakely --- (In reply to sshannin from comment #6) > I guess to rephrase, should there also be a specialized spaceship overload > for the (nullopt_t, optional) direction to complement the (optional, > nullopt) one? No

[Bug libstdc++/96269] optional comparison with nullopt fails

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

[Bug libstdc++/96269] [10/11 Regression] optional comparison with nullopt fails

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

[Bug libstdc++/97731] terminate called in std::experimental::filesystem::recursive_directory_iterator

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

[Bug libstdc++/97729] [11 Regression] Link failure due to basic_stringbuf and others when building DLL on MinGW

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

[Bug libstdc++/97729] [11 Regression] Link failure due to basic_stringbuf and others when building DLL on MinGW

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

[Bug libstdc++/96269] [10/11 Regression] optional comparison with nullopt fails

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

[Bug libstdc++/97729] [11 Regression] Link failure due to basic_stringbuf and others when building DLL on MinGW

2020-11-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97729 --- Comment #10 from Jonathan Wakely --- Great, thanks for the report and testing the fix.

[Bug libstdc++/96269] [10/11 Regression] optional comparison with nullopt fails

2020-11-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96269 --- Comment #12 from Jonathan Wakely --- Fixed by r10-8983 for gcc-10

[Bug libstdc++/97758] [11 Regression] bits/std_function.h: error: unknown type name 'type_info' when using -fno-exceptions -fno-rtti

2020-11-09 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97758 Jonathan Wakely changed: What|Removed |Added Known to work||10.2.1 Target Milestone|---

[Bug c/78352] GCC lacks support for the Apple "blocks" extension to the C family of languages

2020-11-09 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78352 --- Comment #16 from Jonathan Wakely --- (In reply to Eric Gallager from comment #13) > If we could get in touch with an actual lawyer to review which laws > specifically are getting in the way here, that could be helpful. I won my > election to

[Bug c++/51242] [C++11] Unable to use strongly typed enums as bit fields

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

[Bug libstdc++/97759] Could std::has_single_bit be faster?

2020-11-09 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97759 --- Comment #6 from Jonathan Wakely --- As an aside, libstdc++ does already use the ((x-1) & x) == 0 idiom in where we are happy for zero to be treated as a power of two (because we call _Power_of_2(n+1) and we want the result to be true for n==

[Bug target/96835] Constructor in offload template class

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

[Bug libstdc++/97758] [11 Regression] bits/std_function.h: error: unknown type name 'type_info' when using -fno-exceptions -fno-rtti

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

[Bug c++/57111] Generalize -Wfree-nonheap-object to delete

2020-11-09 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57111 --- Comment #12 from Jonathan Wakely --- (In reply to Martin Sebor from comment #11) > It detects the bug in the test case in comment #0 but only with optimization > (to see through inlined calls) and with -Wsystem-headers. This seems like a war

[Bug libstdc++/97731] terminate called in std::experimental::filesystem::recursive_directory_iterator

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

[Bug c++/97740] Weird error message about accessing a private member of my own class inside of std::string_view inside of constexpr

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

[Bug c++/97740] Weird error message about accessing a private member of my own class inside of std::string_view inside of constexpr

2020-11-09 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97740 --- Comment #1 from Jonathan Wakely --- N.B. the "diagnostic" keyword is for poor quality diagnostics, not ones that shouldn't happen at all. Code that shouldn't give an error at all should use "rejects-valid" instead.

[Bug libstdc++/97759] Could std::has_single_bit be faster?

2020-11-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97759 --- Comment #12 from Jonathan Wakely --- r11-4843 should have removed the small difference between the std and popcount benchmarks. I still see a small advantage to arithmetic for skylake i7-6700 CPU @ 3.40GHz and i7-8650U CPU @ 1.90GHz though.

[Bug c++/97773] gcc crash after some noexcept magic

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

[Bug c++/97773] gcc crash after some noexcept magic

2020-11-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97773 Jonathan Wakely changed: What|Removed |Added Keywords||ice-on-valid-code Status|W

[Bug c++/97773] gcc crash after some noexcept magic

2020-11-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97773 --- Comment #8 from Jonathan Wakely --- (In reply to Janez Zemva from comment #6) > try -std=c++20 ? Which is why the instructions at https://gcc.gnu.org/bugs clearly say you need to provide the options used.

[Bug c++/97773] gcc crash after some noexcept magic

2020-11-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97773 --- Comment #7 from Jonathan Wakely --- N.B. your program has undefined behaviour. Specializing std::hash for standard library types is forbidden. GCC shouldn't crash though.

[Bug c++/97773] gcc crash after some noexcept magic

2020-11-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97773 --- Comment #9 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #7) > N.B. your program has undefined behaviour. Specializing std::hash for > standard library types is forbidden. GCC shouldn't crash though. Oh, you didn't! I mi

[Bug c++/97773] gcc crash after some noexcept magic

2020-11-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97773 --- Comment #10 from Jonathan Wakely --- Reduced: using size_t = decltype(sizeof(0)); template struct remove_reference { using type = T; }; template struct remove_reference { using type = T; }; template struct remove_reference { using type = T;

[Bug c++/97773] gcc crash after some noexcept magic

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

[Bug c++/97773] gcc crash after some noexcept magic

2020-11-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97773 --- Comment #13 from Jonathan Wakely --- I think it's just a dup of PR 82099. Reduced further to only use C++14 template struct hash { int operator()(T) const noexcept { return 0; } }; template int hash_combine(T v) noexcept(noexcept(hash(

[Bug c++/82099] internal compiler error: in type_throw_all_p, at cp/except.c:1186 when using a function pointer for templated predicate

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

[Bug c++/97773] gcc crash after some noexcept magic

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

[Bug c++/97773] gcc crash after some noexcept magic

2020-11-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97773 --- Comment #15 from Jonathan Wakely --- (In reply to Martin Liška from comment #12) > Started to ICE with -std=c++17 since r6-3372-g378b307d0d7e789c. That's the commit that added C++17 fold expressions, but the ICE doesn't depend on fold expres

[Bug c++/85468] Wrong location for -Wignored-qualifiers diagnostic on conversion operator

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

[Bug libstdc++/97781] New: basic_stringbuf::swap is not exception safe

2020-11-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97781 Bug ID: 97781 Summary: basic_stringbuf::swap is not exception safe Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstd

[Bug c++/97778] return type not deduced with gcc but get deduced with clang

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

[Bug c++/64194] [C++14] for function template with auto return

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

[Bug c++/97778] return type not deduced with gcc but get deduced with clang

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

[Bug c++/97785] New: const_cast shows diagnostic about Y*

2020-11-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97785 Bug ID: 97785 Summary: const_cast shows diagnostic about Y* Product: gcc Version: 11.0 Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3

[Bug c/71219] Warn about (struct S*)malloc(n) where n < sizeof(struct S)

2020-11-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71219 Jonathan Wakely changed: What|Removed |Added Last reconfirmed|2016-05-26 00:00:00 |2020-11-10 --- Comment #4 from Jonatha

[Bug c++/94057] [9 Regression] -std=gnu++20 causes failure naming nested templated class since r9-4536

2020-11-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94057 Jonathan Wakely changed: What|Removed |Added CC||redi at gcc dot gnu.org --- Comment #8

[Bug c++/65943] template keyword required for base-specifier that names member of the current instantiation

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

[Bug c++/56842] Argument deduction failure note is empty for alias template

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

[Bug libstdc++/42857] std::istream::ignore(std::streamsize n) calls unnecessary underflow

2020-11-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42857 --- Comment #8 from Jonathan Wakely --- Probably changed by one of the patches for PR 94749 or PR 96161, although I still see two reads for the first example.

[Bug libstdc++/42857] std::istream::ignore(std::streamsize n) calls unnecessary underflow

2020-11-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42857 --- Comment #10 from Jonathan Wakely --- Untested patch: --- a/libstdc++-v3/src/c++98/compatibility.cc +++ b/libstdc++-v3/src/c++98/compatibility.cc @@ -88,7 +88,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION {

[Bug libstdc++/95989] Segmentation fault compiling with static libraries and using jthread::request_stop

2020-11-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95989 --- Comment #15 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #14) > > --- a/libgcc/gthr-posix.h > > +++ b/libgcc/gthr-posix.h > > @@ -684,7 +684,12 @@ __gthread_equal (__gthread_t __t1, __gthread_t __t2) > > static inline _

[Bug libstdc++/96416] address_of() is broken by static_assert in pointer_traits

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

[Bug libstdc++/96416] address_of() is broken by static_assert in pointer_traits

2020-11-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96416 --- Comment #5 from Jonathan Wakely --- But on third thoughts, I don't know how to implement this reliably.

[Bug libstdc++/96416] address_of() is broken by static_assert in pointer_traits

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

[Bug libstdc++/96416] address_of() is broken by static_assert in pointer_traits

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

[Bug libstdc++/96416] address_of() is broken by static_assert in pointer_traits

2020-11-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96416 --- Comment #8 from Jonathan Wakely --- I suppose I could change the static_assert message to also suggest defining your own specialization of std::pointer_traits, which is another way to make it work.

[Bug c++/97798] FTB msp430-elf error: the value of '__gnu_cxx::__numeric_traits_integer<__int20>::__max' is not usable in a constant expression

2020-11-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97798 --- Comment #6 from Jonathan Wakely --- I think the reduction is not a fair representation of the original code. Obviously shifting by -1 is not OK, but the code doesn't do that ... at least not for most targets. The problem is specific to msp43

[Bug libstdc++/97798] FTB msp430-elf error: the value of '__gnu_cxx::__numeric_traits_integer<__int20>::__max' is not usable in a constant expression

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

[Bug libstdc++/97798] FTB msp430-elf error: the value of '__gnu_cxx::__numeric_traits_integer<__int20>::__max' is not usable in a constant expression

2020-11-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97798 --- Comment #8 from Jonathan Wakely --- My attempt to build msp430 fails with: In file included from /home/jwakely/gcc/msp430-elf/msp430-elf/include/stdint.h:13, from /home/jwakely/src/gcc/build-16bit/gcc/include/stdint.h:9,

[Bug libstdc++/97798] FTB msp430-elf error: the value of '__gnu_cxx::__numeric_traits_integer<__int20>::__max' is not usable in a constant expression

2020-11-12 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97798 --- Comment #11 from Jonathan Wakely --- Fixed for gcc-11 but it should be backported too. Even if the compiler doesn't reject the overflow in the constant expressions, the values of the trait are still wrong for __int20.

[Bug libstdc++/95048] [9/10/11 Regression] wstring-constructor of std::filesystem::path throws for non-ASCII characters

2020-11-12 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95048 --- Comment #7 from Jonathan Wakely --- (In reply to Christian Fersch from comment #6) > It seems like the solution would be to use codecvt_utf8 if wchar_t is 32bit > and codecvt_utf8_utf16 if wchar_t is 16bit. This also seems to be what > libc+

[Bug libstdc++/95048] [9/10/11 Regression] wstring-constructor of std::filesystem::path throws for non-ASCII characters

2020-11-12 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95048 --- Comment #8 from Jonathan Wakely --- We do have a codecvt specialization that uses iconv, which would allow us to convert from the native wide encoding to UTF-8, independent of the locale's narrow encoding.

[Bug libstdc++/97798] FTB msp430-elf error: the value of '__gnu_cxx::__numeric_traits_integer<__int20>::__max' is not usable in a constant expression

2020-11-12 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97798 --- Comment #13 from Jonathan Wakely --- I tried a bootstrap of gcc-10 and I get this error during libgcc/configure conftest.s: Assembler messages: conftest.s:168: Error: unknown pseudo-op: `.mspabi_attribute' conftest.s:169: Error: unknown pseu

[Bug libstdc++/97813] std::filesystem::equivalent returning incorrect results on MinGW due to symlinks

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

[Bug libstdc++/96042] Reference type of std::ranges::iota is __int128 with -std=c++2a?!

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

[Bug libstdc++/97798] FTB msp430-elf error: the value of '__gnu_cxx::__numeric_traits_integer<__int20>::__max' is not usable in a constant expression

2020-11-12 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97798 --- Comment #15 from Jonathan Wakely --- Hmm, I get the same error for a out-of-tree binutils built from today's git sources: GNU assembler (GNU Binutils) 2.35.50.20201112 Copyright (C) 2020 Free Software Foundation, Inc. This program is free so

[Bug c++/63287] __STDCPP_THREADS__ is not defined

2020-11-12 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63287 --- Comment #3 from Jonathan Wakely --- I tried to implement this by adding a macro definition to c_cpp_builtins in gcc/c-family/c-cppbuiltin.c but failed. I think we want to inspect the 'thread_model' global variable and see if it is "single", b

[Bug c++/97814] Copy constructor deletion not recognized in initialization list with -std=c++17

2020-11-12 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97814 --- Comment #2 from Jonathan Wakely --- There is no copy in C++17, it is elided, so lock(S(1)) is equivalent to lock(1) in C++17, and that constructor exists. GCC is correct.

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