[Bug libstdc++/92272] concepts check failed: std::vector iterator and std::string iterator are not contiguous iterator.

2019-10-30 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92272 Jonathan Wakely changed: What|Removed |Added Status|ASSIGNED|RESOLVED CC|jwakely at

[Bug libstdc++/92272] concepts check failed: std::vector iterator and std::string iterator are not contiguous iterator.

2019-10-30 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92272 --- Comment #4 from Jonathan Wakely --- Author: redi Date: Wed Oct 30 15:48:11 2019 New Revision: 277629 URL: https://gcc.gnu.org/viewcvs?rev=277629&root=gcc&view=rev Log: Apply C++20 changes to various iterator types This ensures that __normal

[Bug c/92292] New: duplicate -Wformat warnings about incorrect printf format specifiers

2019-10-30 Thread redi at gcc dot gnu.org
Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Target Milestone: --- Target: *-w64-mingw32 Using mingw-w64 the following program gives two warnings. On other target

[Bug c++/92293] New: No reason given for template argument deduction failure with zero-length array

2019-10-30 Thread redi at gcc dot gnu.org
: diagnostic Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Target Milestone: --- As an extension G++ allows zero-length arrays, but doesn't allow a length of zero to be de

[Bug libstdc++/89022] Implement P0202R3 - C++20 Constexpr Modifiers to Functions in and Headers.

2019-10-30 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89022 --- Comment #4 from Jonathan Wakely --- Oh, and I removed __cpp_lib_constexpr from today.

[Bug libstdc++/89022] Implement P0202R3 - C++20 Constexpr Modifiers to Functions in and Headers.

2019-10-30 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89022 --- Comment #3 from Jonathan Wakely --- (In reply to emsr from comment #2) > I think we're done. > The __cpp_lib_constexpr may not do anything or may not be in the newest > drafts anymore. We should probably kill it. I was very confused as peop

[Bug libstdc++/92300] Useless allocator call in std::map, when insert does not perform any insertion.

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

[Bug c++/83732] wrong warning about non-POD field

2019-10-31 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83732 --- Comment #7 from Jonathan Wakely --- (In reply to Kenman Tsang from comment #6) > Sorry for bring this topic back again. That's OK, the bug is still open. > But I think there are some > inconsistancy with the std::is_pod and the error messag

[Bug c++/92268] [concepts] hard error satisfying return-type-requirement

2019-10-31 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92268 --- Comment #11 from Jonathan Wakely --- Yes those tests exercise some weird, contrived corner cases. I messed some up and will fix them (and remove my workaround for this bug - thanks!)

[Bug libstdc++/92300] Useless allocator call in std::map, when insert does not perform any insertion.

2019-10-31 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92300 --- Comment #3 from Jonathan Wakely --- (In reply to Antonio Di Monaco from comment #2) > Well, I tried, but nothing changes. > > assert(a.insert(std::make_pair< const int, int >(1, 1)).second); > assert(a.insert(std::make_pair< const int, i

[Bug c++/92297] The expression 0 / X is simplified to 0 even when the variable X is 0

2019-10-31 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92297 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/92298] The expression X / X is simplified to 1 even when the variable X is 0

2019-10-31 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92298 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/92297] The expression 0 / X is simplified to 0 even when the variable X is 0

2019-10-31 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92297 --- Comment #4 from Jonathan Wakely --- *** Bug 92298 has been marked as a duplicate of this bug. ***

[Bug c++/92299] The expression X / abs (X) is simplified to 1 even when the variable X is 0

2019-10-31 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92299 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/92297] The expression 0 / X is simplified to 0 even when the variable X is 0

2019-10-31 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92297 --- Comment #5 from Jonathan Wakely --- *** Bug 92299 has been marked as a duplicate of this bug. ***

[Bug c++/92297] The expression 0 / X is simplified to 0 even when the variable X is 0

2019-10-31 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92297 --- Comment #6 from Jonathan Wakely --- (In reply to Luca Rocca from comment #2) > Consider also for comparison the approach of GCC up to gcc-6.4.0, > reading this comment from the corresponding file gcc-6.4.0/gcc/match.pd: > > /* Make sure to p

[Bug c++/92268] [concepts] hard error satisfying return-type-requirement

2019-10-31 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92268 --- Comment #12 from Jonathan Wakely --- Author: redi Date: Thu Oct 31 13:17:48 2019 New Revision: 277667 URL: https://gcc.gnu.org/viewcvs?rev=277667&root=gcc&view=rev Log: Remove PR 92268 workaround and fix new test failures With the compiler

[Bug libstdc++/88339] Implement P0515R3, C++20 three-way comparison operator support .

2019-10-31 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88339 --- Comment #3 from Jonathan Wakely --- Yeah, I already noticed that :-) I have some more changes locally too.

[Bug c++/92236] [concepts] Explain non-satisfaction in static_assert

2019-11-01 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92236 --- Comment #3 from Jonathan Wakely --- Another idea would be to add a new flag which chooses between brief and verbose explanations of satisfaction failure during overload resolution. By default just say that an overload isn't viable because typ

[Bug c++/92338] double/float thought (ambiguous) candidate for C-array index. (Non numeric types aren't.)

2019-11-03 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92338 --- Comment #1 from Jonathan Wakely --- I believe GCC is right, as unhelpful as that might seem.

[Bug libstdc++/61761] [C++11] std::proj returns incorrect values

2019-11-04 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61761 --- Comment #12 from Jonathan Wakely --- I probably missed a later fix that got made to the trunk version of the test. I'll take a look.

[Bug c++/92338] double/float thought (ambiguous) candidate for C-array index. (Non numeric types aren't.)

2019-11-04 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92338 --- Comment #4 from Jonathan Wakely --- All compilers agree, because it's what the standard says should happen.

[Bug c++/92338] double/float thought (ambiguous) candidate for C-array index. (Non numeric types aren't.)

2019-11-05 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92338 --- Comment #8 from Jonathan Wakely --- (In reply to Mick P. from comment #5) > Try Visual Studio's. I did, and it doesn't compile: https://godbolt.org/z/Q54kFs

[Bug libstdc++/92376] New: [9/10 Regression] bootstrap fails with --disable-hosted-libstdcxx

2019-11-05 Thread redi at gcc dot gnu.org
Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Target Milestone: --- I'm not sure when this regression started, I'll check later. /home/jwakely/src/gcc/libstdc++-

[Bug libstdc++/92376] [9/10 Regression] bootstrap fails with --disable-hosted-libstdcxx

2019-11-05 Thread redi at gcc dot gnu.org
||2019-11-05 Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org Ever confirmed|0 |1

[Bug libstdc++/92376] [9/10 Regression] bootstrap fails with --disable-hosted-libstdcxx

2019-11-05 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92376 --- Comment #1 from Jonathan Wakely --- After fixing that, there's still a problem, as isn't installed for freestanding: In file included from /home/jwakely/gcc/freestanding/include/c++/10.0.0/version:35, from :1: /home/jwakely

[Bug c++/92338] double/float thought (ambiguous) candidate for C-array index. (Non numeric types aren't.)

2019-11-05 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92338 --- Comment #10 from Jonathan Wakely --- Can you please stop changing the status to FIXED. That means a bug in GCC was fixed. Since nothing in GCC changed, nothing has been fixed. I think all compilers are trying to convert the object to std::pt

[Bug c++/92384] [8/9/10 Regression] Empty class instances have different equal testing result among GCC versions

2019-11-05 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92384 Jonathan Wakely changed: What|Removed |Added Keywords||ABI Status|UNCONFIRMED

[Bug c++/92384] [8/9/10 Regression] Empty class instances have different equal testing result among GCC versions

2019-11-05 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92384 --- Comment #2 from Jonathan Wakely --- Reduced: class Empty {}; bool is_same(Empty a, Empty b) { __builtin_printf("%p\n%p\n", &a, &b); void* v[] = { &a, &b }; return v[0] == v[1]; } int main() { Empty a, b; if (is_same(a, b)) _

[Bug c++/92400] Incorrect selection of constructor overload for brace list

2019-11-06 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92400 --- Comment #1 from Jonathan Wakely --- I think this is another dup of PR 85577, and GCC is doing what CWG DR 2137 says.

[Bug c++/92393] Uniform initialization of non-copiable class data member cause to error

2019-11-06 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92393 --- Comment #1 from Jonathan Wakely --- Another dup of PR 63707 ?

[Bug c++/91499] Compile error when trying to aggregate-initialize a member array of non-movable objects with user-defined destructor

2019-11-06 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91499 --- Comment #2 from Jonathan Wakely --- Another dup of PR 63707 ?

[Bug c++/92403] [concepts] requires expression in if constexpr

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

[Bug c++/92416] New: ICE with spaceship and vector types

2019-11-07 Thread redi at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Target Milestone: --- constexpr auto cmp() { [[gnu::vector_size(4)]] int i = { }; return i <=> i; } static_assert( cmp() ); With recent trunk and -std=gnu+2

[Bug c++/92431] New: ICE with spaceship in constexpr evaluation

2019-11-09 Thread redi at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org CC: jason at gcc dot gnu.org Target Milestone: --- This crashes when compiled with -std=gnu++2a: #include template concept op_cmp = requires(_Tp

[Bug c++/92431] ICE with spaceship in constexpr evaluation

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

[Bug c++/92431] ICE with spaceship in constexpr evaluation

2019-11-09 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92431 --- Comment #2 from Jonathan Wakely --- Slightly further reduced: #include constexpr std::weak_ordering cmp(int e, int f) { return e <=> f; } auto o = cmp(1, 2);

[Bug c++/92458] New: Constraints do not work with precompiled headers

2019-11-11 Thread redi at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Blocks: 67491 Target Milestone: --- // header, compile with g++ -std=gnu++2a -c template concept C = sizeof(T) > 1; template struct S { }; templ

[Bug c++/92475] [8/9/10 Regression] incorrect code with optimization

2019-11-12 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92475 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Known to work|

[Bug c++/92475] [8/9/10 Regression] incorrect code with optimization

2019-11-12 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92475 --- Comment #5 from Jonathan Wakely --- You're right, sorry for not checking 9 and 10 properly. I also see it working again after r263875.

[Bug c++/89070] Attribute [[nodiscard]] should be ignored in unevaluated contexts

2019-11-12 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89070 Jonathan Wakely changed: What|Removed |Added CC||src at andyf dot de --- Comment #2 fro

[Bug c++/92477] [[nodiscard]] method in a decltype expression causes "warning: ignoring return value of"

2019-11-12 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92477 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/92490] ’std::stringstream‘ will let the program exit directly and report exit code 127

2019-11-13 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92490 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug other/92484] In tree build of ISL 0.22 fails: requires C++11

2019-11-13 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92484 --- Comment #1 from Jonathan Wakely --- (In reply to Romain Geissler from comment #0) > Is there any official way to build gcc with another C++ standard by default > ? And is in-tree build of libs like gmp/mpfr/mpc/isl still supported or > offici

[Bug c++/92496] spaceship operator without include produces ICE

2019-11-13 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92496 Jonathan Wakely changed: What|Removed |Added Keywords|ice-on-valid-code |ice-on-invalid-code Status

[Bug c++/92495] spaceship operator requires public member

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

[Bug c++/92496] spaceship operator without include produces ICE

2019-11-13 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92496 --- Comment #2 from Jonathan Wakely --- Slightly reduced: template struct A {}; struct B { constexpr auto operator<=>(const B&) const = default; int value; }; A t;

[Bug c++/92431] ICE with spaceship in constexpr evaluation

2019-11-13 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92431 --- Comment #4 from Jonathan Wakely --- Author: redi Date: Wed Nov 13 16:26:18 2019 New Revision: 278149 URL: https://gcc.gnu.org/viewcvs?rev=278149&root=gcc&view=rev Log: libsupc++: Implement comparison algorithms for C++20 This is incomplete

[Bug c++/79009] Missing 'inconsistent deduction for ‘auto’' error when having a dependent initializer and a nondependent one in the same declaration

2019-11-14 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79009 Jonathan Wakely changed: What|Removed |Added CC||g...@nicholas-schwab.de --- Comment #6

[Bug c++/92509] auto deduction on different types does not emit diagnostic message

2019-11-14 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92509 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/92514] limits:1668:7: internal compiler error: Illegal instruction

2019-11-14 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92514 --- Comment #12 from Jonathan Wakely --- (In reply to Sylvain Korzennik from comment #11) > I'll try rebuilding it w/ ./configure > --host=x86_64-pc-linux-gnu Or let GCC build them for you, by putting their sources in the GCC source tree, as re

[Bug c++/92530] Absent error on static_assert expression

2019-11-15 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92530 Jonathan Wakely changed: What|Removed |Added Keywords||accepts-invalid Status|UNC

[Bug c++/90243] diagnostic notes that belong to a suppressed error about an uninitialized variable in a constexpr function are still shown

2019-11-15 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90243 --- Comment #6 from Jonathan Wakely --- This is still present on gcc-8-branch and gcc-9-branch.

[Bug c++/92519] Spurious "note: ... has no user-provided default constructor"

2019-11-15 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92519 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/90243] diagnostic notes that belong to a suppressed error about an uninitialized variable in a constexpr function are still shown

2019-11-15 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90243 Jonathan Wakely changed: What|Removed |Added CC||patrick at motec dot com.au --- Commen

[Bug c++/92536] New: [10 Regression] ICE when trying to using deduction guide following unknown type error

2019-11-15 Thread redi at gcc dot gnu.org
Keywords: error-recovery, ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Target Milestone: --- namespace std { struct stop_token { }; template struct

[Bug c++/92536] [10 Regression] ICE when trying to using deduction guide following unknown type error

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

[Bug c++/67491] [meta-bug] concepts issues

2019-11-16 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67491 Bug 67491 depends on bug 88075, which changed state. Bug 88075 Summary: [feature-request] allow "concept" instead of "concept bool" with -fconcepts https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88075 What|Removed

[Bug c++/88075] [feature-request] allow "concept" instead of "concept bool" with -fconcepts

2019-11-16 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88075 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/92541] New: ICE when concept requires contextual conversion to bool

2019-11-16 Thread redi at gcc dot gnu.org
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Blocks: 67491 Target Milestone: --- template struct A { static constexpr bool value = true; explicit operator bool

[Bug c++/92542] New: ICE with class template argument deduction following typo

2019-11-16 Thread redi at gcc dot gnu.org
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Target Milestone: --- template struct S { S(T, T) { } }; char* begin(); char* end(); void test01() { S s(begin(). end

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

2019-11-17 Thread redi at gcc dot gnu.org
Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Target Milestone: --- For : : | g++ -std=c++11 -P -E -x c++ - -include array | wc -l 5141 : | g++ -std=c++14 -P -E -x c++ - -include array | wc -l

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

2019-11-17 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92546 --- Comment #1 from Jonathan Wakely --- Currently includes the whole of , but we might be able to avoid that so that is more lightweight: : | g++ -std=c++2a -P -E -x c++ - -include array | wc -l 7729 : | g++ -std=c++2a -P -E -x c++ - -include

[Bug c++/92560] New: ICE using decltype(x < y) when that operator uses operator<=>

2019-11-18 Thread redi at gcc dot gnu.org
alid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org CC: jason at gcc dot gnu.org Target Milestone: --- #include struct X { friend std::strong_ordering

[Bug c++/92551] accepts invalid code in function template

2019-11-18 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92551 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed|

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

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

[Bug c++/92562] Allow [[maybe_unused]] in class member declaration

2019-11-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92562 Jonathan Wakely changed: What|Removed |Added Keywords||diagnostic Status|UNCONFIR

[Bug c++/92576] New: Definition of variable template without initializer is treated as declaration

2019-11-19 Thread redi at gcc dot gnu.org
: accepts-invalid Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Target Milestone: --- GCC accepts this as a declaration followed by a definition, but it should be two definitions

[Bug c++/92576] Definition of variable template without initializer is treated as declaration

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

[Bug c++/92576] Definition of variable template without initializer is treated as declaration

2019-11-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92576 --- Comment #2 from Jonathan Wakely --- Author: redi Date: Tue Nov 19 09:34:59 2019 New Revision: 278440 URL: https://gcc.gnu.org/viewcvs?rev=278440&root=gcc&view=rev Log: libstdc++: Fix declarations of variable templates This code is invalid a

[Bug libstdc++/92577] Undefined behavior when using std::map with a noexcept allocator

2019-11-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92577 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug libstdc++/92577] Undefined behavior when using std::map with a noexcept allocator

2019-11-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92577 --- Comment #2 from Jonathan Wakely --- (Your quotes from the standard are about operator new, not about allocators.)

[Bug c++/89931] Incorrect compiler error with temporary object used as function arguments

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

[Bug c++/84930] Brace-closed initialization of cstring (i.e."abcdefghi") to coresponding aggregate types fails in certain situation

2019-11-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84930 Jonathan Wakely changed: What|Removed |Added Last reconfirmed|2018-03-28 00:00:00 |2019-11-19 --- Comment #3 from Jonatha

[Bug c++/84930] Brace-closed initialization of cstring (i.e."abcdefghi") to coresponding aggregate types fails in certain situation

2019-11-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84930 Jonathan Wakely changed: What|Removed |Added CC||michael.kenzel at gmail dot com --- Co

[Bug c++/92579] compiler rejects list initialization of character array member from string literal in return statement

2019-11-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92579 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/92580] "if constexpr" not discarding branch

2019-11-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92580 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/87389] if constexpr not working properly with static_assert

2019-11-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87389 Jonathan Wakely changed: What|Removed |Added CC||paultargosz86 at googlemail dot co

[Bug c++/92580] "if constexpr" not discarding branch

2019-11-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92580 --- Comment #3 from Jonathan Wakely --- See PR 85689 as well.

[Bug c++/67228] Template partial ordering failure ambiguous overload

2019-11-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67228 Jonathan Wakely changed: What|Removed |Added Keywords||rejects-valid Status|UNCON

[Bug c++/91073] [9/10 Regression] if constexpr no longer works directly with Concepts

2019-11-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91073 Jonathan Wakely changed: What|Removed |Added Last reconfirmed|2019-07-03 00:00:00 |2019-11-19 --- Comment #6 from Jonatha

[Bug c++/92590] [10 Regression] Cannot expose protected default constructor with "using" keyword in gcc 10

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

[Bug c++/92593] New: ICE with CTAD using undeclared constraint

2019-11-20 Thread redi at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Blocks: 67491 Target Milestone: --- template // oops, should be std::integral struct ref_view { ref_view(T) { } }; ref_view r{1}; This crashes when

[Bug c++/92593] [10 Regression] ICE with CTAD using undeclared constraint

2019-11-20 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92593 Jonathan Wakely changed: What|Removed |Added Keywords||needs-bisection Known to work|

[Bug c++/92594] [10 Regression] internal compiler error: in build_value_init_noctor, at cp/init.c:400 using std::tuple

2019-11-20 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92594 Jonathan Wakely changed: What|Removed |Added Keywords||ice-on-valid-code Status|U

[Bug c++/92598] explicit specialization of template from unnamed namespace using unqualified-id in enclosing namespace

2019-11-20 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92598 Jonathan Wakely changed: What|Removed |Added Keywords||rejects-valid Status|UNCON

[Bug c++/58875] No float to int conversion warning in std::inner_product(x, x_end, y, 0)

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

[Bug libstdc++/68606] Reduce or disable the static emergency pool for C++ exceptions

2019-11-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68606 Jonathan Wakely changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c++/30357] Enum typecast warning

2019-11-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=30357 --- Comment #7 from Jonathan Wakely --- (In reply to Eric Gallager from comment #6) > At least as far as this particular testcase goes, there's a warning from > -Wuninitialized at least... if you initialize parentValue to EP_VAL2 like I > think y

[Bug c++/63181] GCC should warn about "obvious" bugs in binding a reference to temporary

2019-11-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63181 --- Comment #5 from Jonathan Wakely --- (In reply to Eric Gallager from comment #4) > This one should be moved to its own separate option per bug 7651 Indeed it should, and if we add -Wdangling-field then that would be the ideal option to move i

[Bug libstdc++/91786] Clang 8.0.1 can't compile the header on Windows

2019-11-21 Thread redi at gcc dot gnu.org
|UNCONFIRMED |ASSIGNED Last reconfirmed||2019-11-21 Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org Target Milestone|--- |9.3 Ever confirmed|0 |1

[Bug libstdc++/92616] Inconsistency in time between system_clock::now() and time(nullptr)

2019-11-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92616 --- Comment #1 from Jonathan Wakely --- I can reproduce it, but I think this has to be a glibc problem. Libstdc++ simply calls clock_gettime(3), and both that and time(3) come from glibc.

[Bug libstdc++/92616] Inconsistency in time between system_clock::now() and time(nullptr)

2019-11-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92616 --- Comment #2 from Jonathan Wakely --- I see the same result when using clock_gettime directly instead of system_clock::now() #include #include #include #include void dumpNow() { struct timespec ts; clock_gettime(CLOCK_REALTIME, &ts);

[Bug libstdc++/92616] Inconsistency in time between system_clock::now() and time(nullptr)

2019-11-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92616 --- Comment #3 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #1) > I can reproduce it, but I think this has to be a glibc problem. Libstdc++ > simply calls clock_gettime(3), and both that and time(3) come from glibc. Correct

[Bug libstdc++/92616] Inconsistency in time between system_clock::now() and time(nullptr)

2019-11-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92616 --- Comment #4 from Jonathan Wakely --- gettimeofday agrees with clock_gettime(CLOCK_REALTIME): void dumpNow() { struct timespec ts; clock_gettime(CLOCK_REALTIME, &ts); auto const now = time(nullptr); struct timeval tv; gettimeofday(&t

[Bug libstdc++/92616] Inconsistency in time between system_clock::now() and time(nullptr)

2019-11-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92616 --- Comment #6 from Jonathan Wakely --- https://bugzilla.kernel.org/ but I think they prefer bugs to be reported to distros unless you're actually using the upstream kernel. So report it to Ubuntu (but mention it's also seen in Fedora).

[Bug c++/22395] -Weffc++ shouldn't warn about non-virtual dtor of private subclasses

2019-11-22 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=22395 --- Comment #7 from Jonathan Wakely --- (In reply to Eric Gallager from comment #6) > Note that clang goes even farther in splitting up -Wdelete-non-virtual-dtor > into different warnings based on whether the dtor is abstract or not: > https://cl

[Bug libstdc++/92267] [9 Regression] crash with a cppunit test case (built by GCC 9) and cpptest (built with GCC 8)

2019-11-22 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92267 Jonathan Wakely changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug libstdc++/92267] [9 Regression] crash with a cppunit test case (built by GCC 9) and cpptest (built with GCC 8)

2019-11-22 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92267 --- Comment #7 from Jonathan Wakely --- Author: redi Date: Fri Nov 22 12:36:18 2019 New Revision: 278614 URL: https://gcc.gnu.org/viewcvs?rev=278614&root=gcc&view=rev Log: PR libstdc++/92267 fix ABI change in deque iterators Defaulting the copy

[Bug bootstrap/92627] configure script unable to find gmp, mpc, and mpfr install dirs

2019-11-22 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92627 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed|

<    7   8   9   10   11   12   13   14   15   16   >