[Bug c++/99361] New: "unused variable" warning on a used variable in template lambda

2021-03-03 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99379] New: lambda declared with deduced type 'auto' can appear in its own initializer

2021-03-04 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99379] lambda declared with deduced type 'auto' can appear in its own initializer

2021-03-04 Thread hewillk at gmail dot com via Gcc-bugs
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.

[Bug c++/99465] New: Segmentation fault when put lambda into requires clause

2021-03-08 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99465] Segmentation fault when put lambda into requires clause

2021-03-08 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99465] Segmentation fault when put lambda into requires clause

2021-03-08 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99478] New: ICE when decltype lambda in template list

2021-03-08 Thread hewillk at gmail dot com via Gcc-bugs
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++

[Bug c++/99505] New: ICE Segmentation fault when decltype lambda in parameter list

2021-03-09 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99505] ICE Segmentation fault when decltype lambda in parameter list

2021-03-10 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99511] New: default arguments are allowed for parameters of a requires expression

2021-03-10 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99513] New: ICE Segmentation fault when decltype lambda in concept template list

2021-03-10 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99516] New: Erroneous lambda conversion in default non-type template list

2021-03-10 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99521] New: ICE Segmentation fault when decltype lambda in requires clause

2021-03-10 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99521] ICE Segmentation fault when decltype lambda in requires clause

2021-03-10 Thread hewillk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99521 康桓瑋 changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/99465] Segmentation fault when put lambda into requires clause

2021-03-10 Thread hewillk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99465 --- Comment #3 from 康桓瑋 --- *** Bug 99521 has been marked as a duplicate of this bug. ***

[Bug c++/99361] "unused variable" warning on a used variable in template lambda

2021-03-10 Thread hewillk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99361 康桓瑋 changed: What|Removed |Added Resolution|--- |DUPLICATE Status|NEW

[Bug c++/96311] [8/9/10/11 Regression] false positive for -Wunused-but-set-variable (const/constexpr identifier used in generic lambda)

2021-03-10 Thread hewillk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96311 康桓瑋 changed: What|Removed |Added CC||hewillk at gmail dot com --- Comment #5 from 康桓瑋

[Bug c++/99538] New: ICE when lambda return requires clause

2021-03-10 Thread hewillk at gmail dot com via Gcc-bugs
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++

[Bug c++/99539] New: Varargs are allowed in requires expression

2021-03-10 Thread hewillk at gmail dot com via Gcc-bugs
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++

[Bug c++/99546] New: Weird return value of C++20 requires expression

2021-03-11 Thread hewillk at gmail dot com via Gcc-bugs
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+

[Bug c++/99546] Weird return value of C++20 requires expression

2021-03-11 Thread hewillk at gmail dot com via Gcc-bugs
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.

[Bug c++/99583] New: Parameter packs not expanded in lambda noexcept specifier

2021-03-14 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99584] New: ICE Segmentation fault when expanding lambda noexcept specifier with invalid parameter pack

2021-03-14 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99589] New: lambda init-capture without initializer in C++20

2021-03-14 Thread hewillk at gmail dot com via Gcc-bugs
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+

[Bug c++/99590] New: ICE when pack expansion with lambda

2021-03-15 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99590] ICE when pack expansion with lambda

2021-03-15 Thread hewillk at gmail dot com via Gcc-bugs
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); //

[Bug c++/99594] New: Parameter packs not expanded in lambda requires clause

2021-03-15 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99595] New: ICE when pack expansion with template lambda

2021-03-15 Thread hewillk at gmail dot com via Gcc-bugs
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++

[Bug c++/99597] New: Parameter packs not expanded in lambda template list

2021-03-15 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99628] New: g++ fails to do the implicit conversion when rewritten operator<=>

2021-03-17 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99589] lambda init-capture without initializer in C++20

2021-03-18 Thread hewillk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99589 --- Comment #1 from 康桓瑋 --- reduced: auto f(auto x) { [...x]{}; }

[Bug c++/99659] New: internal compiler error: tree check: expected tree that contains 'decl common' structure, have 'error_mark' in synthesize_implicit_template_parm, at cp/parser.c:45415

2021-03-19 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99672] New: std::source_location yield different column numbers between free function and template functions

2021-03-19 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99678] New: c++20 trailing requires clauses allows undeclared identifier

2021-03-19 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99546] Weird return value of C++20 requires expression

2021-03-20 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99672] std::source_location yield different column numbers between free function and template functions

2021-03-21 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99700] New: gcc takes an uninitialized variable as a constant expression

2021-03-21 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99730] New: gcc cannot choose the best overload resolution with constrained function

2021-03-23 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99732] New: gcc accepts overload a member function without ref-qualifier with a member function with a ref-qualifier

2021-03-23 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99730] gcc cannot choose the best overload resolution with constrained function

2021-03-23 Thread hewillk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99730 --- Comment #3 from 康桓瑋 --- Really appreciate your reply and explanation.

[Bug c++/99742] New: Parameter packs not expanded with nested requirements

2021-03-23 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99743] New: ICE Segmentation fault when use lambda init-capture in requires clause

2021-03-23 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99745] New: ICE when parameter pack not expanded in bit field

2021-03-23 Thread hewillk at gmail dot com via Gcc-bugs
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:

[Bug c++/99745] ICE when parameter pack not expanded in bit field

2021-03-23 Thread hewillk at gmail dot com via Gcc-bugs
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; | ^

[Bug c++/99750] New: gcc allow operator literal operator have default parameters

2021-03-24 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug libstdc++/99752] New: ranges::find_end should return empty subrange when search range is empty

2021-03-24 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug libstdc++/99752] ranges::find_end should return empty subrange when search range is empty

2021-03-24 Thread hewillk at gmail dot com via Gcc-bugs
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.

[Bug libstdc++/99752] ranges::find_end should return empty subrange when search range is empty

2021-03-24 Thread hewillk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99752 康桓瑋 changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/99757] New: ICE when parameter pack not expanded with static_data_member

2021-03-24 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99800] New: ICE Segmentation fault when put lambda in template parameter list

2021-03-27 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99803] New: internal compiler error: in make_typename_type, at cp/decl.c:4057

2021-03-28 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99806] New: ICE in tsubst_copy of gcc-trunk and tree_code_size of gcc-10

2021-03-28 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99809] New: ICE: sorry, unimplemented: unexpected AST of kind nontype_argument_pack

2021-03-29 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99811] New: ICE: tree check: accessed elt 2 of 'tree_vec' with 1 elts in tsubst_pack_expansion, at cp/pt.c:13002

2021-03-29 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99811] ICE: tree check: accessed elt 2 of 'tree_vec' with 1 elts in tsubst_pack_expansion, at cp/pt.c:13002

2021-03-29 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99800] ICE Segmentation fault when put lambda in template parameter list

2021-03-29 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99815] New: ICE: in placeholder_type_constraint_dependent_p, at cp/pt.c:28193

2021-03-29 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99809] ICE: sorry, unimplemented: unexpected AST of kind nontype_argument_pack

2021-03-29 Thread hewillk at gmail dot com via Gcc-bugs
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.

[Bug c++/99831] New: ICE: in reshape_init, at cp/decl.c:6720

2021-03-30 Thread hewillk at gmail dot com via Gcc-bugs
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++

[Bug c++/99831] ICE: in reshape_init, at cp/decl.c:6720

2021-03-30 Thread hewillk at gmail dot com via Gcc-bugs
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.

[Bug c++/99831] ICE: in reshape_init, at cp/decl.c:6720

2021-03-30 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99844] New: ICE: unexpected expression 'B' of kind template_parm_index

2021-03-30 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99809] ICE: sorry, unimplemented: unexpected AST of kind nontype_argument_pack

2021-03-31 Thread hewillk at gmail dot com via Gcc-bugs
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(); }

[Bug c++/99848] New: Parameter packs not expanded in type-constraint placeholder

2021-03-31 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99850] New: [P1102R2] reject valid lambda syntax in C++23

2021-03-31 Thread hewillk at gmail dot com via Gcc-bugs
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++

[Bug c++/99850] [P1102R2] reject valid lambda syntax in C++23

2021-03-31 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99869] New: ICE: in do_auto_deduction, at cp/pt.c:29620

2021-04-01 Thread hewillk at gmail dot com via Gcc-bugs
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++

[Bug c++/99874] New: ICE Segmentation fault when declared variable template of template lambda

2021-04-01 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99897] New: ICE Segmentation fault when operator appear in template parameter-list

2021-04-03 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99899] New: ICE: in do_auto_deduction, at cp/pt.c:29630

2021-04-03 Thread hewillk at gmail dot com via Gcc-bugs
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++

[Bug c++/99904] New: ICE: in tsubst_pack_expansion, at cp/pt.c:13056

2021-04-04 Thread hewillk at gmail dot com via Gcc-bugs
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+

[Bug c++/99909] New: The value of 'std::is_integral_v' is not usable in a constant expression

2021-04-04 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99916] New: ICE Segmentation fault when erroneous structured bindings appears in requires-clause

2021-04-05 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99923] New: Rejects valid if statement with default argument concept

2021-04-05 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99925] New: Missing 'inconsistent deduction for ‘auto’' error when using type-constraint placeholder

2021-04-05 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99958] New: The seems to contain the entire and in C++20 mode

2021-04-07 Thread hewillk at gmail dot com via Gcc-bugs
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:

[Bug c++/99967] New: gcc accepts declaration type contains unexpanded parameter pack

2021-04-08 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99970] New: gcc accepts invalid comparison between pointer and integer in requires-clause

2021-04-08 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/99970] gcc accepts invalid comparison between pointer and integer in requires-clause

2021-04-08 Thread hewillk at gmail dot com via Gcc-bugs
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?

[Bug c++/99976] New: gcc accepts requires-clause contains unexpanded parameter pack

2021-04-08 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/100006] New: ICE: in dependent_type_p, at cp/pt.c:26745

2021-04-09 Thread hewillk at gmail dot com via Gcc-bugs
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++

[Bug c++/100006] ICE: in dependent_type_p, at cp/pt.c:26745

2021-04-09 Thread hewillk at gmail dot com via Gcc-bugs
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() { >

[Bug c++/100006] [8/9/10/11 Regression] ICE: in dependent_type_p, at cp/pt.c:26745

2021-04-09 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/100007] New: Parameter packs not expanded with bit field

2021-04-09 Thread hewillk at gmail dot com via Gcc-bugs
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++

[Bug c++/100019] New: ICE Segmentation fault with try-catch block in lambda

2021-04-10 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/100022] New: Parameter packs not expanded with alignas specifier

2021-04-10 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug c++/100022] Parameter packs not expanded with alignas specifier

2021-04-10 Thread hewillk at gmail dot com via Gcc-bugs
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.

[Bug c++/100030] New: ICE: in dependent_type_p, at cp/pt.c:26757

2021-04-11 Thread hewillk at gmail dot com via Gcc-bugs
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++

[Bug c++/100030] ICE: in dependent_type_p, at cp/pt.c:26757

2021-04-11 Thread hewillk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100030 --- Comment #1 from 康桓瑋 --- Related to RP 16.

[Bug c++/100031] New: ICE: in dependent_type_p, at cp/pt.c:26757

2021-04-11 Thread hewillk at gmail dot com via Gcc-bugs
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++

[Bug c++/100035] New: Parameter packs not expanded with local variable in lambda

2021-04-11 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug libstdc++/100044] New: ranges::subrange CTAD for __iterator_sentinel_pair not work

2021-04-12 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug libstdc++/100044] ranges::subrange CTAD for __iterator_sentinel_pair not work

2021-04-12 Thread hewillk at gmail dot com via Gcc-bugs
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.

[Bug libstdc++/100044] ranges::subrange CTAD for __iterator_sentinel_pair not work

2021-04-12 Thread hewillk at gmail dot com via Gcc-bugs
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.

[Bug c++/100084] using enum lookup isn't type-only

2021-04-14 Thread hewillk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100084 康桓瑋 changed: What|Removed |Added CC||hewillk at gmail dot com --- Comment #3 from 康桓瑋

[Bug c++/100104] New: std::transform is 1.5 times faster than std::copy with -O3

2021-04-15 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug middle-end/100104] std::transform is 1.5 times faster than std::copy with -O3

2021-04-15 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug middle-end/100104] std::transform is 1.5 times faster than std::copy with -O3

2021-04-15 Thread hewillk at gmail dot com via Gcc-bugs
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

[Bug middle-end/100104] std::transform is 1.5 times faster than std::copy with -O3

2021-04-15 Thread hewillk at gmail dot com via Gcc-bugs
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]!

[Bug c++/100109] New: ICE: unexpected expression 'E' of kind template_parm_index

2021-04-15 Thread hewillk at gmail dot com via Gcc-bugs
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   2   3   4   5   6   >