[Bug libstdc++/35968] nth_element fails to meet its complexity requirements

2020-04-06 Thread andersk at mit dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35968 --- Comment #13 from Anders Kaseorg --- (In reply to Patrick J. LoPresti from comment #12) > I am familiar with the usual algorithmic complexity definitions. > > So, just to be clear... Your assertion is that the C++ standards committee > adopte

[Bug libstdc++/35968] nth_element fails to meet its complexity requirements

2020-04-05 Thread andersk at mit dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35968 Anders Kaseorg changed: What|Removed |Added CC||andersk at mit dot edu --- Comment #11

[Bug c++/79301] With -Werror=pedantic outside C++17 mode, __has_cpp_attribute(fallthrough) is nonzero but [[fallthrough]] fails

2017-02-08 Thread andersk at mit dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79301 --- Comment #5 from Anders Kaseorg --- (In reply to Jakub Jelinek from comment #4) > (In reply to Anders Kaseorg from comment #3) > > (In reply to Jakub Jelinek from comment #2) > > > I think right now you need to use > > > #ifdef __has_cpp_attri

[Bug c++/79301] With -Werror=pedantic outside C++17 mode, __has_cpp_attribute(fallthrough) is nonzero but [[fallthrough]] fails

2017-02-08 Thread andersk at mit dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79301 --- Comment #3 from Anders Kaseorg --- (In reply to Jakub Jelinek from comment #2) > I think right now you need to use > #ifdef __has_cpp_attribute > # if __has_cpp_attribute(fallthrough) >= __cplusplus > [[fallthrough]]; Surely you intended

[Bug c++/79301] New: With -Werror=pedantic outside C++17 mode, __has_cpp_attribute(fallthrough) is nonzero but [[fallthrough]] fails

2017-01-31 Thread andersk at mit dot edu
Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: andersk at mit dot edu Target Milestone: --- One would expect code like this to silence the new -Wimplicit-fallthrough

[Bug c/65307] Incorrect optimization breaks basic arithmetic

2015-03-04 Thread andersk at mit dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65307 Anders Kaseorg changed: What|Removed |Added CC||andersk at mit dot edu --- Comment #2

[Bug tree-optimization/61964] [4.8/4.9 regression] krb5 database propagation enters infinite loop; reduced test case

2014-08-01 Thread andersk at mit dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61964 --- Comment #17 from Anders Kaseorg --- Thanks. I verified that GCC 4.8 r213405 fixes my test case and the original Kerberos problem.

[Bug tree-optimization/61964] [4.8 regression] krb5 database propagation enters infinite loop; reduced test case

2014-07-30 Thread andersk at mit dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61964 --- Comment #4 from Anders Kaseorg --- Another bisect between 4.7 and 4.8 shows that the bug appeared with r189321 (bug 52009). My test case has triggers the bug in more versions than Kerberos does: as far as I can tell, Kerberos was unaffected

[Bug tree-optimization/61964] [4.8 regression] krb5 database propagation enters infinite loop; reduced test case

2014-07-30 Thread andersk at mit dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61964 --- Comment #3 from Anders Kaseorg --- (In reply to Richard Biener from comment #1) > The testcase is violating strict-aliasing rules as you access a struct head > as struct node here: Agree with ghudson here: n->prev points to &heads[2], not &h

[Bug tree-optimization/61964] New: [4.8 regression] krb5 database propagation enters infinite loop; reduced test case

2014-07-30 Thread andersk at mit dot edu
Severity: major Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: andersk at mit dot edu Kerberos is miscompiled by gcc-4.8. The impact is detailed at https://bugs.launchpad.net/bugs/1347147, but here is a reduced test

[Bug c++/56137] New: std::initializer_list accepts invalid designated initializers

2013-01-28 Thread andersk at mit dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56137 Bug #: 56137 Summary: std::initializer_list accepts invalid designated initializers Classification: Unclassified Product: gcc Version: 4.7.2 Status: UNCONFI

[Bug c/47901] -Wall should not imply -Wformat-zero-length by default

2012-04-23 Thread andersk at mit dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47901 --- Comment #7 from Anders Kaseorg 2012-04-23 21:31:18 UTC --- That’s a _much_ higher-level style decision than assumed by any of the other -Wall warnings (or indeed any other warning switches at all), and a questionable one at that. -Wall shoul

[Bug c/47901] -Wall should not imply -Wformat-zero-length by default

2012-04-23 Thread andersk at mit dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47901 --- Comment #5 from Anders Kaseorg 2012-04-23 20:22:20 UTC --- I’m not sure ("%s", "") is a suitable replacement in general. Maybe this is a far-fetched example, but what the purpose of custom_printf is to shell-quote all its arguments, so that

[Bug c/47901] -Wall should not imply -Wformat-zero-length by default

2012-04-23 Thread andersk at mit dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47901 --- Comment #4 from Anders Kaseorg 2012-04-23 20:10:22 UTC --- Yes, I understand what -Wall is supposed to mean. I don’t have a problem with -Wall warning about ‘if (foo = 3)’ when I probably intended ‘if (foo == 3)’ and I could have written ‘if

[Bug c++/50093] [4.6 Regression] STL containers of non-default-constructible classes fail under -std=c++0x

2011-08-15 Thread andersk at mit dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50093 Anders Kaseorg changed: What|Removed |Added Known to work||4.5.3 Known to fail|

[Bug c++/50093] New: [4.6 Regression] STL containers of non-default-constructible classes fail under -std=c++0x

2011-08-15 Thread andersk at mit dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50093 Bug #: 50093 Summary: [4.6 Regression] STL containers of non-default-constructible classes fail under -std=c++0x Classification: Unclassified Product: gcc Ver