[Bug c++/96078] [10/11 Regression] flatten attribute on constructor and destructor causes spurious warning

2020-07-06 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96078 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Known to work|

[Bug jit/96079] Unresolved atomic builtins

2020-07-06 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96079 --- Comment #1 from Jonathan Wakely --- It seems like all these bugs with atomics in libgccjit could be a single bug report.

[Bug c++/96077] GCC accepts ill-legal local enum definition

2020-07-06 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96077 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug c++/96068] Extra semicolon outside of a function should be allowed after c++11?

2020-07-06 Thread redi at gcc dot gnu.org
||patch Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org --- Comment #2 from Jonathan Wakely --- Patch submitted: https://gcc.gnu.org/pipermail/gcc-patches/2020-July/549453.html

[Bug c++/96068] Extra semicolon outside of a function should be allowed after c++11?

2020-07-06 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96068 Jonathan Wakely changed: What|Removed |Added Status|ASSIGNED|RESOLVED Target Milestone|---

[Bug libstdc++/96063] mismatched-tags warnings in stdlib headers

2020-07-06 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96063 Jonathan Wakely changed: What|Removed |Added Target Milestone|--- |11.0 Status|NEW

[Bug libstdc++/96063] mismatched-tags warnings in stdlib headers

2020-07-06 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96063 --- Comment #4 from Jonathan Wakely --- What I meant was that I was tempted to disable them completely *even with* -Wsystem-headers. All warnings are already disabled by default in libstdc++ headers. If your build is adding -Wsystem-headers then

[Bug c++/96063] [10/11 Regression] mismatched-tags warnings in stdlib headers

2020-07-06 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96063 Jonathan Wakely changed: What|Removed |Added Status|RESOLVED|REOPENED Component|libstdc++

[Bug c++/96063] [10/11 Regression] mismatched-tags warnings in stdlib headers

2020-07-06 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96063 --- Comment #8 from Jonathan Wakely --- Created attachment 48838 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48838&action=edit Fix orphaned notes.

[Bug libstdc++/96083] New: Clang can't compile : error: use of undeclared identifier '__builtin_sprintf'

2020-07-06 Thread redi at gcc dot gnu.org
Keywords: rejects-valid Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Target Milestone: --- $ clang++ -include bits/extc++.h -x c++ - :1: In file included from

[Bug libstdc++/96036] Please make std::optinal noexcept constructible when possible

2020-07-06 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96036 Jonathan Wakely changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/96090] Inconsistent querying of differring exception specifications of explicitly defaulted functions

2020-07-07 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96090 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW CC|

[Bug c++/96063] [10/11 Regression] mismatched-tags warnings in stdlib headers

2020-07-07 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96063 --- Comment #10 from Jonathan Wakely --- What's wrong with checking the return value of warning_at as in the patch in comment 8?

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

2020-07-07 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96042 Jonathan Wakely changed: What|Removed |Added Last reconfirmed||2020-07-07 Status|RESOLVED

[Bug c++/96106] [10/11 Regression] A friend abbreviated template function denies access to private members

2020-07-08 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96106 Jonathan Wakely changed: What|Removed |Added Summary|A friend abbreviated|[10/11 Regression] A friend

[Bug c++/96110] Function declarator with a trailing return type "auto" should be allowed in try-catch block

2020-07-08 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96110 --- Comment #1 from Jonathan Wakely --- What is that even supposed to mean? Rejecting it seems right to me.

[Bug c++/96110] Function declarator with a trailing return type "auto" should be allowed in try-catch block

2020-07-08 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96110 --- Comment #2 from Jonathan Wakely --- This isn't specific to catch handlers, other compilers accept that nonsense function declaration in various contexts, and GCC rejects them all: using F = auto () -> auto; template struct X { }; X auto> x;

[Bug c++/96110] Function declarator with a trailing return type "auto" should be allowed in try-catch block

2020-07-08 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96110 --- Comment #3 from Jonathan Wakely --- And this puts Clang into a coma even without debuginfo: template struct X { T* p; }; X auto> x;

[Bug c++/96110] Function declarator with a trailing return type "auto" should be allowed in try-catch block

2020-07-08 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96110 Jonathan Wakely changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

[Bug c++/96110] Function declarator with a trailing return type "auto" should be allowed in try-catch block

2020-07-08 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96110 --- Comment #6 from Jonathan Wakely --- I've reported https://bugs.llvm.org/show_bug.cgi?id=46637

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

2020-07-08 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95989 --- Comment #12 from Jonathan Wakely --- (In reply to Antal Buss from comment #1) > Created attachment 48811 [details] > Preprocessed file For convenience, that is: #include int main() { auto t = std::jthread([](){}); t.request_stop();

[Bug libstdc++/95983] `std::counted_iterator>>` fails to satisfy `std::input_or_output_iterator`

2020-07-08 Thread redi at gcc dot gnu.org
||2020-07-08 Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org Status|UNCONFIRMED |ASSIGNED --- Comment #1 from Jonathan Wakely --- (In reply to ensadc from comment #0) > It seems that in this case, `iter_difference_t`

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

2020-07-08 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95989 Jonathan Wakely changed: What|Removed |Added See Also||https://sourceware.org/bugz

[Bug c++/96118] GCC accepts invalid combination of two type specifiers

2020-07-08 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96118 --- Comment #1 from Jonathan Wakely --- This is a duplicate of an existing bug.

[Bug c++/96119] GCC accepts invalid qualifier in a try-catch block

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

[Bug c++/96117] Cannot mix c++11-style and GCC-style attributes

2020-07-08 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96117 Jonathan Wakely changed: What|Removed |Added Last reconfirmed||2020-07-08 Status|UNCONFIR

[Bug c++/96115] Char literal, decays to a pointer when passed to function pointer

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

[Bug c++/19538] [DR 407] Bogus diagnostic for typedef name in elaborated type specifier

2020-07-08 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19538 Jonathan Wakely changed: What|Removed |Added Keywords|accepts-invalid, diagnostic |rejects-valid Status|SUSPE

[Bug c++/46206] using typedef-name error with typedef name hiding struct name

2020-07-08 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46206 Jonathan Wakely changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c++/81836] ill-formed qualified name not diagnosed

2020-07-08 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81836 Jonathan Wakely changed: What|Removed |Added Keywords|diagnostic | Last reconfirmed|2017-08-21 00:00:0

[Bug c++/86709] 'short type-name' is invalid

2020-07-08 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86709 Jonathan Wakely changed: What|Removed |Added CC||haoxintu at gmail dot com --- Comment

[Bug c++/96118] GCC accepts invalid combination of two type specifiers

2020-07-08 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96118 Jonathan Wakely changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRM

[Bug c++/79815] gcc does not implement C++ standard 7.1.7.4.1 p5 correctly.

2020-07-08 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79815 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW See Also|

[Bug c++/96121] Uninitialized variable copying not diagnosed

2020-07-08 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96121 Jonathan Wakely changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug c++/96120] Ambiguity diagnostic message of "invalid use of type 'void' in parameter declaration"

2020-07-08 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96120 --- Comment #1 from Jonathan Wakely --- (In reply to Haoxin Tu from comment #0) > GCC might emit the ambiguity diagnostic message on it. What does that mean?

[Bug c++/96120] Ambiguity diagnostic message of "invalid use of type 'void' in parameter declaration"

2020-07-08 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96120 --- Comment #2 from Jonathan Wakely --- GCC's diagnostic seems fine to me. Using 'void' as the type of a parameter is invalid. There's a special case for (void) but that isn't relevant to your declaration, which has two parameters.

[Bug c++/96120] Ambiguity diagnostic message of "invalid use of type 'void' in parameter declaration"

2020-07-08 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96120 --- Comment #4 from Jonathan Wakely --- (In reply to Haoxin Tu from comment #3) > Apologize for my expression. I mean the meaning of the error message > "invalid use of type ‘void’ in parameter declaration" is opposite with the > valid grammar(it

[Bug libstdc++/96070] std::views::* won't work with non-legacy iterators

2020-07-08 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96070 Jonathan Wakely changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug libstdc++/96088] Range insertion into unordered_map is less effective than a loop with insertion

2020-07-09 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96088 --- Comment #2 from Jonathan Wakely --- (In reply to François Dumont from comment #1) > I'll check if we can be smarter here. A nice improvement would be to change > std::hash operator signature to: > > size_t > operator()(const stri

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

2020-07-09 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66146 Jonathan Wakely changed: What|Removed |Added Target Milestone|10.2|---

[Bug target/94087] std::random_device often fails when used from multiple threads

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

[Bug libstdc++/94080] -mabi=ieeelongdouble and -mfloat128 cause libstc++ header breakage

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

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

2020-07-09 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95989 --- Comment #14 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #13) > I'm testing this: > > diff --git a/libgcc/gthr-posix.h b/libgcc/gthr-posix.h > index 965247602ac..0af84a781e5 100644 > --- a/libgcc/gthr-posix.h > +++ b/li

[Bug c++/89962] likely/unlikely attributes don't work on a compound-statement

2020-07-09 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89962 Jonathan Wakely changed: What|Removed |Added Status|NEW |RESOLVED Target Milestone|---

[Bug libstdc++/96088] Range insertion into unordered_map is less effective than a loop with insertion

2020-07-09 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96088 --- Comment #4 from Jonathan Wakely --- (In reply to Marc Glisse from comment #3) > > Adding hash::operator()(string_view) is an interesting idea for the > > standard though. > > Indeed. If we want to, I think it is possible to add some overload

[Bug libstdc++/95322] std::list | take | transform, expression does not work cbegin() == end()

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

[Bug libstdc++/94749] std::istream::ignore discards too many characters

2020-07-09 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94749 --- Comment #7 from Jonathan Wakely --- The fix is actually not right, it fails to discard the delimiter if it occurs after ignoring more than numeric_limits::max() characters. I have a fix for that though.

[Bug c++/80272] g++ runs out of memory with aggregate init of large std::array of non-trivial class

2020-07-09 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80272 Jonathan Wakely changed: What|Removed |Added CC||zoid at riseup dot net --- Comment #6

[Bug c++/93892] Aggregate initialisation of std::array takes forever to compile

2020-07-09 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93892 Jonathan Wakely changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRM

[Bug c++/96145] Weird output in compiling a typedef union as a function return type

2020-07-10 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96145 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Keywords|

[Bug libstdc++/96161] New: istream::ignore sets eofbit too soon

2020-07-10 Thread redi at gcc dot gnu.org
++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Target Milestone: --- #include #include int main() { std::istringstream s("++"); s.ignore(2, '-'); std::cout << "EOF? " << s.eof() << std::endl;

[Bug libstdc++/96161] istream::ignore sets eofbit too soon

2020-07-10 Thread redi at gcc dot gnu.org
||https://gcc.gnu.org/bugzill ||a/show_bug.cgi?id=94749 Status|UNCONFIRMED |ASSIGNED Ever confirmed|0 |1 Assignee|unassigned at gcc dot gnu.org |redi at gcc

[Bug c++/59135] Incorrect ambiguity in constexpr function overloads

2020-07-10 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59135 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Known to fail|

[Bug libstdc++/89417] helgrind detects a lock order violation inside std::scoped_lock

2020-07-13 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89417 --- Comment #2 from Jonathan Wakely --- (In reply to Federico Kircheis from comment #0) > In case helgrind is correct, it seems that there are some issues behind > std::scoped_lock, since it was explicitly designed for solving issues with > lock

[Bug c++/96179] [10/11 Regression] g++-10.1 silently doesn't push_back the return of a void function

2020-07-13 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96179 Jonathan Wakely changed: What|Removed |Added Target Milestone|--- |10.2 CC|

[Bug c++/96063] [10/11 Regression] mismatched-tags warnings in stdlib headers

2020-07-13 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96063 --- Comment #16 from Jonathan Wakely --- One or both of r11-1853 and r11-1899 should be backported.

[Bug libstdc++/70493] std::setlocale("") throws exception

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

[Bug libstdc++/68737] FAIL: 22_locale/num_put/put/char/14220.cc execution test

2020-07-13 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68737 Jonathan Wakely changed: What|Removed |Added Target Milestone|--- |9.0 --- Comment #29 from Jonathan Wake

[Bug c++/96181] Missing return statement now leads to crashes

2020-07-13 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96181 --- Comment #3 from Jonathan Wakely --- (In reply to Arturo Laurenzi from comment #0) > Now, I understand the code snipped is probably broken. However, this change > breaks old code that would work just fine by ignoring the undefined return > val

[Bug libstdc++/96161] istream::ignore sets eofbit too soon

2020-07-13 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96161 --- Comment #2 from Jonathan Wakely --- Fixed on trunk so far.

[Bug c++/85714] -Wimplicit-fallthrough and nested exhaustive switch statements with enum classes and return

2020-07-13 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85714 --- Comment #7 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #5) > The enumeration type can take any value from (Foo)INT_MIN to (Foo)INT_MAX, > and likewise for Bar. Your switches are not exhaustive. > > I think we need a FA

[Bug c++/83280] gcc doesn't realize a returning value from complete switch(enum...) does return a value

2020-07-13 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83280 --- Comment #2 from Jonathan Wakely --- There is now info about this on the wiki: https://gcc.gnu.org/wiki/VerboseDiagnostics#enum_switch

[Bug c++/96182] GCC accepts constexpr function with no return-statement

2020-07-13 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96182 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug c++/96193] No ADL for hidden friend in call with explicit template arguments

2020-07-14 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96193 --- Comment #2 from Jonathan Wakely --- (In reply to Johel Ernesto Guerrero Peña from comment #1) > That actually compiles if I add -std=c++20. That is correct, isn't it? http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0846r0.html is a

[Bug c++/96185] Enhancement: Please add a builtin to count bindings in [dcl.struct.bind]

2020-07-14 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96185 --- Comment #3 from Jonathan Wakely --- (In reply to Will Wray from comment #2) > Would an early-delivered future feature require an opt-in switch? The relevant -std switch would be the opt-in. > Can P1061 be default enabled under earlier std f

[Bug c++/96185] Enhancement: Please add a builtin to count bindings in [dcl.struct.bind]

2020-07-14 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96185 --- Comment #4 from Jonathan Wakely --- (In reply to Will Wray from comment #0) > (Submitting simultaneous requests for each of GCC, Clang and MSVC. > Coordination between vendors will be beneficial for portability.) This seems like the wrong a

[Bug c++/96185] Enhancement: Please add a builtin to count bindings in [dcl.struct.bind]

2020-07-14 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96185 --- Comment #8 from Jonathan Wakely --- But __builtin_bit_cast is the compiler magic to support std::bit_cast, it's not just a non-standard extension. PR 93121 is a request for std::bit_cast in GCC.

[Bug libstdc++/89417] helgrind detects a lock order violation inside std::scoped_lock

2020-07-15 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89417 --- Comment #4 from Jonathan Wakely --- (In reply to Federico Kircheis from comment #3) > My guess, without having looked at the implementation of std::lock, is that > the algorithm uses try_lock to eventually lock/unlock the mutexes and see if >

[Bug c++/64335] decltype and access of a private member type

2020-07-15 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64335 Jonathan Wakely changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|---

[Bug c++/96204] gcc complains about private member access in SFINAE context

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

[Bug c++/96204] gcc complains about private member access in SFINAE context

2020-07-15 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96204 --- Comment #3 from Jonathan Wakely --- Reduced: template using void_t = void; template T&& declval(); template struct has_set_attr_method { static constexpr bool value = false; }; template struct has_set_attr_method().setAttr(1))>> {

[Bug c++/96204] gcc complains about private member access in SFINAE context

2020-07-15 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96204 --- Comment #4 from Jonathan Wakely --- The reduced example above doesn't need -std=c++17, it should compile in C++11 or later.

[Bug libstdc++/89417] helgrind detects a lock order violation inside std::scoped_lock

2020-07-15 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89417 --- Comment #7 from Jonathan Wakely --- (In reply to Federico Kircheis from comment #6) > For what is worth, I imagined the implementation for parameters of different > type and more or less than two to be similar to > > > template > auto

[Bug c++/96222] std::filesystem::directory_iterator shares state

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

[Bug libstdc++/86742] Documented function std::to_chars(char* first, char* last, double value) is not implemented

2020-07-16 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86742 Jonathan Wakely changed: What|Removed |Added Last reconfirmed||2020-07-16 Assignee|unassign

[Bug c++/96266] Macro defined as enum in parens resolves to 1

2020-07-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96266 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug libstdc++/68737] FAIL: 22_locale/num_put/put/char/14220.cc execution test

2020-07-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68737 Jonathan Wakely changed: What|Removed |Added Status|NEW |RESOLVED Target Milestone|9.0

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

2020-07-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96269 --- Comment #1 from Jonathan Wakely --- Your operator== should be const-qualified.

[Bug libstdc++/96279] build failure: floating_from_chars.cc:310:22: error: '__builtin_isinf_sign' is not a member of 'std'

2020-07-22 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96279 Jonathan Wakely changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org

[Bug c++/96283] "undefined vtable" error should indicate which members are missing

2020-07-22 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96283 --- Comment #3 from Jonathan Wakely --- (In reply to Eyal Rozenberg from comment #2) > Ok, still - the linker knows which virtual methods it needs, and it knows > which are provided by each compiled translation unit. Isn't that enough? The linke

[Bug c++/96283] "undefined vtable" error should indicate which members are missing

2020-07-22 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96283 --- Comment #4 from Jonathan Wakely --- (In reply to Eyal Rozenberg from comment #0) > While this is true, it is a bit confusing. But even supposing I looked up > what this error means and realized what was going on, I would still need to > go ov

[Bug c/85678] -fno-common should be default

2020-07-22 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85678 Jonathan Wakely changed: What|Removed |Added Target Milestone|--- |10.0

[Bug other/42540] c++ error message [vtable undefined] is unhelpful

2020-07-22 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42540 --- Comment #12 from Jonathan Wakely --- (In reply to Zhihao Yuan from comment #11) > 1. Adjust the error message to say, "The first non-inline, non-pure function > may not have a definition in ." That error comes from the linker. The linker is

[Bug other/42540] c++ error message [vtable undefined] is unhelpful

2020-07-22 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42540 --- Comment #13 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #3) > The linker error alone doesn't make the root cause obvious, but it's a > fairly well known and well documented problem: > http://www.parashift.com/c++-faq-li

[Bug other/42540] c++ error message [vtable undefined] is unhelpful

2020-07-22 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42540 Jonathan Wakely changed: What|Removed |Added CC||eyalroz at technion dot ac.il --- Comm

[Bug c++/96283] "undefined vtable" error should indicate which members are missing

2020-07-22 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96283 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/95596] string literal wrong overload resolution (char* vs std::string)

2020-07-22 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95596 --- Comment #5 from Jonathan Wakely --- Another one that G++ rejects: void f(char*); int &f(...); int &r = f("foo");

[Bug c++/95596] string literal wrong overload resolution (char* vs std::string)

2020-07-22 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95596 Jonathan Wakely changed: What|Removed |Added CC||zhonghao at pku dot org.cn --- Comment

[Bug c++/86498] g++ allows conversion from string literal to non-const char* in C++11 mode

2020-07-22 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86498 Jonathan Wakely changed: What|Removed |Added Status|NEW |RESOLVED Last reconfirmed|2018-07-12

[Bug c/96284] Outdated C features should be made errors with newer standards

2020-07-22 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96284 --- Comment #2 from Jonathan Wakely --- But they're not enabled by default, meaning that the unsafe, ill-formed code is still accepted by default.

[Bug c++/96286] New: Unhelpful errors after a failed static_assert

2020-07-22 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: --- template struct S { static_assert( sizeof(T) < 4, "smol" ); char* p = new char[3 - sizeof(T)]; }; S s; GCC gives two erro

[Bug c++/68929] GCC hangs in nested template instantiations even after static_assert fails.

2020-07-22 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68929 --- Comment #4 from Jonathan Wakely --- Probably related to PR c++/96286, because if we stopped trying to compile a class after a failed static_assert then we wouldn't keep recursing in Eric's example here.

[Bug other/96287] Empty string argument to gcc should be ignored

2020-07-22 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96287 --- Comment #1 from Jonathan Wakely --- Ignoring it could lead to equally undesirable behaviour though. for file in *.cc ; do gcc "$fil" ; done Don't those languages support something like the Bourne shell's "$@" which does the right thing?

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

2020-07-23 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92285 Jonathan Wakely changed: What|Removed |Added Target Milestone|10.3|10.0 Resolution|---

[Bug libstdc++/71579] type_traits miss checks for type completeness in some traits

2020-07-23 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71579 Jonathan Wakely changed: What|Removed |Added Target Milestone|10.3|--- --- Comment #17 from Jonathan Wake

[Bug other/84889] Ideas on revamping how we format diagnostics

2020-07-23 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84889 --- Comment #23 from Jonathan Wakely --- Dave, should we unset the milestone? Any further changes will only happen on trunk not the gcc-10 branch, right?

[Bug other/89635] More ANSI SGR codes in diagnostics?

2020-07-23 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89635 Jonathan Wakely changed: What|Removed |Added Target Milestone|10.3|--- --- Comment #5 from Jonathan Wakel

[Bug libstdc++/96303] [10/11 Regression] Ambiguous overload for operator!= for std::__debug::bitset compiled with -std=c++20 and -pedantic.

2020-07-23 Thread redi at gcc dot gnu.org
gcc dot gnu.org |redi at gcc dot gnu.org Last reconfirmed||2020-07-23 Status|UNCONFIRMED |ASSIGNED Known to work||9.3.0 Known to fail||10.2.0, 11.0 Summary

[Bug libstdc++/96322] 22_locale/numpunct/members/char/3.cc is outdated: expects grouping=0, actual=3

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

[Bug libstdc++/96324] two semantic errors in polymorphic allocator for Ranges because it is attributed by constexpr.

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

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