https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99361
Bug ID: 99361
Summary: "unused variable" warning on a used variable in
template lambda
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99379
Bug ID: 99379
Summary: lambda declared with deduced type 'auto' can appear in
its own initializer
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: norma
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99379
--- Comment #1 from 康桓瑋 ---
I find this:
https://stackoverflow.com/questions/25693676/auto-variable-used-in-lambda-in-its-own-initializer
So this is not a bug.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99465
Bug ID: 99465
Summary: Segmentation fault when put lambda into requires
clause
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priorit
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99465
--- Comment #1 from 康桓瑋 ---
Other related ICE:
template requires ([]{}());
auto f() requires ([]{}());
https://godbolt.org/z/8z3PPx
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99465
--- Comment #2 from 康桓瑋 ---
Here is the minimal reduced example:
f() requires [
godbolt: https://godbolt.org/z/eMWxPj
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99478
Bug ID: 99478
Summary: ICE when decltype lambda in template list
Product: gcc
Version: 9.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99505
Bug ID: 99505
Summary: ICE Segmentation fault when decltype lambda in
parameter list
Product: gcc
Version: 9.1.0
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99505
--- Comment #2 from 康桓瑋 ---
Yep, wandbox (https://wandbox.org/permlink/OUJpCz6dFrlA1vod) compiles fine.
This invalid code maybe can reproduce that locally.
int main() {
[] (decltype([]{})) {} ();
}
(wandbox: https://wandbox.org/permlink/re9
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99511
Bug ID: 99511
Summary: default arguments are allowed for parameters of a
requires expression
Product: gcc
Version: 10.1.0
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99513
Bug ID: 99513
Summary: ICE Segmentation fault when decltype lambda in concept
template list
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99516
Bug ID: 99516
Summary: Erroneous lambda conversion in default non-type
template list
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
P
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99521
Bug ID: 99521
Summary: ICE Segmentation fault when decltype lambda in
requires clause
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-co
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99521
康桓瑋 changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99465
--- Comment #3 from 康桓瑋 ---
*** Bug 99521 has been marked as a duplicate of this bug. ***
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99361
康桓瑋 changed:
What|Removed |Added
Resolution|--- |DUPLICATE
Status|NEW
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96311
康桓瑋 changed:
What|Removed |Added
CC||hewillk at gmail dot com
--- Comment #5 from 康桓瑋
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99538
Bug ID: 99538
Summary: ICE when lambda return requires clause
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99539
Bug ID: 99539
Summary: Varargs are allowed in requires expression
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99546
Bug ID: 99546
Summary: Weird return value of C++20 requires expression
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c+
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99546
--- Comment #1 from 康桓瑋 ---
You can see more weird cases in this:
https://stackoverflow.com/questions/66578966/weird-return-value-of-c20-requires-expression.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99583
Bug ID: 99583
Summary: Parameter packs not expanded in lambda noexcept
specifier
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Prio
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99584
Bug ID: 99584
Summary: ICE Segmentation fault when expanding lambda noexcept
specifier with invalid parameter pack
Product: gcc
Version: 11.0
Status: UNCONFIRMED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99589
Bug ID: 99589
Summary: lambda init-capture without initializer in C++20
Product: gcc
Version: 9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c+
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99590
Bug ID: 99590
Summary: ICE when pack expansion with lambda
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
A
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99590
--- Comment #1 from 康桓瑋 ---
I think this is a valid code:
void g(auto... args) {
([args...](auto...){}(args ), ...);
}
void f(auto... args) {
([args ](auto...){}(args...), ...);
}
int main() {
g(0, 1); // this one ICE
f(0, 1); //
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99594
Bug ID: 99594
Summary: Parameter packs not expanded in lambda requires clause
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Compon
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99595
Bug ID: 99595
Summary: ICE when pack expansion with template lambda
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99597
Bug ID: 99597
Summary: Parameter packs not expanded in lambda template list
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Componen
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99628
Bug ID: 99628
Summary: g++ fails to do the implicit conversion when rewritten
operator<=>
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99589
--- Comment #1 from 康桓瑋 ---
reduced:
auto f(auto x) {
[...x]{};
}
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99659
Bug ID: 99659
Summary: internal compiler error: tree check: expected tree
that contains 'decl common' structure, have
'error_mark' in synthesize_implicit_template_parm, at
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99672
Bug ID: 99672
Summary: std::source_location yield different column numbers
between free function and template functions
Product: gcc
Version: 11.0
Status: UNCONFIRMED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99678
Bug ID: 99678
Summary: c++20 trailing requires clauses allows undeclared
identifier
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Pr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99546
--- Comment #4 from 康桓瑋 ---
same form, but this will trigger ICE:
struct S{
constexpr static auto s = requires { []; };
};
:1:8: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in overri
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99672
--- Comment #3 from 康桓瑋 ---
I think the issue of line() function also needs to do a patch.
https://godbolt.org/z/q8EPnG
constexpr int g(auto...) {
return std::source_location::current( // < opening paren line number
).line();
}
constexpr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99700
Bug ID: 99700
Summary: gcc takes an uninitialized variable as a constant
expression
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Pr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99730
Bug ID: 99730
Summary: gcc cannot choose the best overload resolution with
constrained function
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99732
Bug ID: 99732
Summary: gcc accepts overload a member function without
ref-qualifier with a member function with a
ref-qualifier
Product: gcc
Version: 11.0
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99730
--- Comment #3 from 康桓瑋 ---
Really appreciate your reply and explanation.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99742
Bug ID: 99742
Summary: Parameter packs not expanded with nested requirements
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Compone
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99743
Bug ID: 99743
Summary: ICE Segmentation fault when use lambda init-capture in
requires clause
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99745
Bug ID: 99745
Summary: ICE when parameter pack not expanded in bit field
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99745
--- Comment #1 from 康桓瑋 ---
Reduce a little:
template
struct S {
int x : Xs;
};
S s;
:3:7: internal compiler error: unexpected expression 'Xs' of kind
template_parm_index
3 | int x : Xs;
| ^
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99750
Bug ID: 99750
Summary: gcc allow operator literal operator have default
parameters
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Pri
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99752
Bug ID: 99752
Summary: ranges::find_end should return empty subrange when
search range is empty
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99752
--- Comment #1 from 康桓瑋 ---
My pardon, since the ranges::find_end return type is ranges::subrange, we
still to get the common last1 iterator through the ranges::next call, so this
seems not a bug.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99752
康桓瑋 changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99757
Bug ID: 99757
Summary: ICE when parameter pack not expanded with
static_data_member
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Pr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99800
Bug ID: 99800
Summary: ICE Segmentation fault when put lambda in template
parameter list
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99803
Bug ID: 99803
Summary: internal compiler error: in make_typename_type, at
cp/decl.c:4057
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99806
Bug ID: 99806
Summary: ICE in tsubst_copy of gcc-trunk and tree_code_size of
gcc-10
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Pr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99809
Bug ID: 99809
Summary: ICE: sorry, unimplemented: unexpected AST of kind
nontype_argument_pack
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99811
Bug ID: 99811
Summary: ICE: tree check: accessed elt 2 of 'tree_vec' with 1
elts in tsubst_pack_expansion, at cp/pt.c:13002
Product: gcc
Version: 11.0
Status: UNCONFIRMED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99811
--- Comment #1 from 康桓瑋 ---
same form with the different error message:
https://godbolt.org/z/hE9n6eEMT
#include
template
auto f(Ts...) {
return [] auto> {};
}
int main() {
f(0).template operator()<0>();
}
:9:30: internal compiler err
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99800
康桓瑋 changed:
What|Removed |Added
Keywords|ice-on-invalid-code |ice-on-valid-code
--- Comment #1 from 康桓瑋 ---
Thi
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99815
Bug ID: 99815
Summary: ICE: in placeholder_type_constraint_dependent_p, at
cp/pt.c:28193
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99809
--- Comment #2 from 康桓瑋 ---
I think this is not a valid code even if clang accepts it, since the parameter
packs args are not expanded.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99831
Bug ID: 99831
Summary: ICE: in reshape_init, at cp/decl.c:6720
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99831
--- Comment #1 from 康桓瑋 ---
Note that if we comment one of the asserts, there will be no problem, or we
just comment the redundant std::ranges::sort.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99831
--- Comment #4 from 康桓瑋 ---
When the array subscript is outside the bounds of array, gcc seems to fall into
infinite recursion due to the default operator==.
Here is the reduced with no header:
struct A {
constexpr A(const char*) {}
char va
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99844
Bug ID: 99844
Summary: ICE: unexpected expression 'B' of kind
template_parm_index
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Prio
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99809
--- Comment #3 from 康桓瑋 ---
More reduced:
template
concept C = true;
void f(auto... args) {
[](C auto) {};
}
int main() { f(); }
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99848
Bug ID: 99848
Summary: Parameter packs not expanded in type-constraint
placeholder
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Pri
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99850
Bug ID: 99850
Summary: [P1102R2] reject valid lambda syntax in C++23
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99850
--- Comment #4 from 康桓瑋 ---
This ICE may be caused by not handle this form.
template concept C = true;
auto l = [] requires (C && ...) -> void {};
https://godbolt.org/z/vo8xPd4hY
:3:48: internal compiler error: Segmentation fault
3 | aut
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99869
Bug ID: 99869
Summary: ICE: in do_auto_deduction, at cp/pt.c:29620
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99874
Bug ID: 99874
Summary: ICE Segmentation fault when declared variable template
of template lambda
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99897
Bug ID: 99897
Summary: ICE Segmentation fault when operator appear in
template parameter-list
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99899
Bug ID: 99899
Summary: ICE: in do_auto_deduction, at cp/pt.c:29630
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99904
Bug ID: 99904
Summary: ICE: in tsubst_pack_expansion, at cp/pt.c:13056
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c+
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99909
Bug ID: 99909
Summary: The value of 'std::is_integral_v' is not usable
in a constant expression
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99916
Bug ID: 99916
Summary: ICE Segmentation fault when erroneous structured
bindings appears in requires-clause
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Sever
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99923
Bug ID: 99923
Summary: Rejects valid if statement with default argument
concept
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priori
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99925
Bug ID: 99925
Summary: Missing 'inconsistent deduction for ‘auto’' error when
using type-constraint placeholder
Product: gcc
Version: 11.0
Status: UNCONFIRMED
S
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99958
Bug ID: 99958
Summary: The seems to contain the entire
and in C++20 mode
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99967
Bug ID: 99967
Summary: gcc accepts declaration type contains unexpanded
parameter pack
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99970
Bug ID: 99970
Summary: gcc accepts invalid comparison between pointer and
integer in requires-clause
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: no
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99970
--- Comment #1 from 康桓瑋 ---
The requires-expression is a red herring, so it can be simplified to:
template
void f() { x == nullptr; };
int main() {
f();
}
Is this ill-formed?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99976
Bug ID: 99976
Summary: gcc accepts requires-clause contains unexpanded
parameter pack
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=16
Bug ID: 16
Summary: ICE: in dependent_type_p, at cp/pt.c:26745
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=16
--- Comment #1 from 康桓瑋 ---
(In reply to 康桓瑋 from comment #0)
> Congratulations on hitting the 10,000 reports mark!
>
> https://godbolt.org/z/dhPqd4595
>
> template
> auto f(Ts...) {
> [] { enum class e : Ts {}; };
> }
>
> int main() {
>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=16
--- Comment #3 from 康桓瑋 ---
https://godbolt.org/z/o6h8GP6ae
Maybe same form:
template
auto f() {
[] { struct S : Ts {}; };
}
int main() {
f<>();
}
:3:15: internal compiler error: in dependent_type_p, at cp/pt.c:26745
3 | [] { stru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=17
Bug ID: 17
Summary: Parameter packs not expanded with bit field
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100019
Bug ID: 100019
Summary: ICE Segmentation fault with try-catch block in lambda
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Compo
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100022
Bug ID: 100022
Summary: Parameter packs not expanded with alignas specifier
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Compone
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100022
--- Comment #1 from 康桓瑋 ---
I think this is a dup of PR 16, correct me if i am wrong.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100030
Bug ID: 100030
Summary: ICE: in dependent_type_p, at cp/pt.c:26757
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100030
--- Comment #1 from 康桓瑋 ---
Related to RP 16.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100031
Bug ID: 100031
Summary: ICE: in dependent_type_p, at cp/pt.c:26757
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100035
Bug ID: 100035
Summary: Parameter packs not expanded with local variable in
lambda
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Pr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100044
Bug ID: 100044
Summary: ranges::subrange CTAD for __iterator_sentinel_pair not
work
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
P
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100044
--- Comment #1 from 康桓瑋 ---
The problem seems to be forgetting to delete this CATD in commit
77f5310f0205714538668b88fbf1de44f1f435be.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100044
--- Comment #3 from 康桓瑋 ---
Never knew the existence of this to-do list, thank you for letting me know.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100084
康桓瑋 changed:
What|Removed |Added
CC||hewillk at gmail dot com
--- Comment #3 from 康桓瑋
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100104
Bug ID: 100104
Summary: std::transform is 1.5 times faster than std::copy with
-O3
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Pr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100104
--- Comment #2 from 康桓瑋 ---
Build "copy" with -O2 on x86-64 (https://godbolt.org/z/Gja6xrq9G):
.LC0:
.string "vector::_M_realloc_insert"
copy(std::vector > const&):
pushr15
pxorxmm0, xmm0
pushr14
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100104
--- Comment #3 from 康桓瑋 ---
Build "copy" with -O2 on x86-64 (https://godbolt.org/z/Gja6xrq9G):
.LC0:
.string "vector::_M_realloc_insert"
copy(std::vector > const&):
pushr15
pxorxmm0, xmm0
pushr14
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100104
--- Comment #4 from 康桓瑋 ---
And Build "copy" with -O2 on ARM64 is identical with -O3
(https://godbolt.org/z/5hjKGbrTd):
.LC0:
.string "vector::_M_realloc_insert"
transform(std::vector > const&):
stp x29, x30, [sp, -64]!
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100109
Bug ID: 100109
Summary: ICE: unexpected expression 'E' of kind
template_parm_index
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Pr
1 - 100 of 526 matches
Mail list logo