[Bug c++/111415] New: False positive array-bounds warning with -O3

2023-09-14 Thread daiw at gmx dot net via Gcc-bugs
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: daiw at gmx dot net Target Milestone: --- Using g++ (GCC) 13.2.0, the following minimal example: std::vector foo(const std::vector& a) { if (a.size() < 2) { return a; } return a; } i

[Bug libstdc++/78991] std::sort and std::unique can not use std::function with clang++ -std=c++14

2017-01-04 Thread daiw at gmx dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78991 Tobias changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug libstdc++/78991] std::sort and std::unique can not use std::function with clang++ -std=c++14

2017-01-04 Thread daiw at gmx dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78991 --- Comment #2 from Tobias --- Thanks. The evidence you collected shows quite clear, that it probably is a problem with clang. So I now posted it here: https://llvm.org/bugs/show_bug.cgi?id=31537

[Bug libstdc++/78991] New: std::sort and std::unique can not use std::function with clang++ -std=c++14

2017-01-04 Thread daiw at gmx dot net
: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: daiw at gmx dot net Target Milestone: --- The following two minimal examples both compile with clang++ -std=c++11 main.cpp but do not with clang++ -std=c++14

[Bug c++/78850] New: Parameter of returned generic lambda allegedly shadows parameter of free function

2016-12-18 Thread daiw at gmx dot net
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: daiw at gmx dot net Target Milestone: --- Compiling the following code template auto apply(X x, F f) { return f(x); } template auto