: 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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78991
Tobias changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
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
: 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
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