[Bug c++/79865] New: Crash when calling member function with template parameter from generic lambda

2017-03-04 Thread gufideg at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gufideg at gmail dot com Target Milestone: --- Created attachment 40882 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40882=edit GCC Version Inputting this c

[Bug c++/81700] New: Unresolved function type when taking address of operator() of generic lambda

2017-08-03 Thread gufideg at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gufideg at gmail dot com Target Milestone: --- Hi, have found this corner case when taking the address of operator() of a generic lambda. This error only happen when using

[Bug c++/81236] Crash when calling a template member function from generic lambda

2017-06-27 Thread gufideg at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81236 --- Comment #1 from Guillaume Racicot --- Created attachment 41639 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41639=edit The compiler output crashing

[Bug c++/81236] Crash when calling a template member function from generic lambda

2017-06-27 Thread gufideg at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81236 --- Comment #2 from Guillaume Racicot --- Created attachment 41640 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41640=edit CPP file that trigger the crash

[Bug c++/81236] New: Crash when calling a template member function from generic lambda

2017-06-27 Thread gufideg at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gufideg at gmail dot com Target Milestone: --- This causes current G++ (7.1.1) to crash: #include template constexpr void for_sequence(std::integer_sequence<T, S...&

[Bug c++/80795] New: Cannot take the address of call operator of a variadic lambda when parameter pack length differs from 1

2017-05-16 Thread gufideg at gmail dot com
: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gufideg at gmail dot com Target Milestone: --- Hi there, I stumble across this error: int main() { auto test = [](auto, auto, auto

[Bug c++/83476] New: Template argument deduction fails with reference auto template parameter

2017-12-18 Thread gufideg at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gufideg at gmail dot com Target Milestone: --- As the title says, I have an auto reference template parameter which should be deduced, but fails in this case: constexpr auto

[Bug c++/85743] New: Cannot call template member function inside a variadic lambda unless specifying `this`

2018-05-10 Thread gufideg at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gufideg at gmail dot com Target Milestone: --- When using a particular pattern to expand a variadic template inside a member function, `this->` need to be specif

[Bug c++/85866] New: [8 Regression] too few arguments to function when sfinae on calling pointer to member function

2018-05-21 Thread gufideg at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gufideg at gmail dot com Target Milestone: --- This code fails under GCC 8: #include template using void_t = void; template().*std

[Bug c++/85866] [8 Regression] too few arguments to function when sfinae on calling pointer to member function

2018-05-21 Thread gufideg at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85866 --- Comment #1 from Guillaume Racicot --- I tried some similar cases, and It seems it only happens when the expression `(std::declval().*std::declval())()` is inside template parameters. In the return type and normal function parameter it works

[Bug c++/85589] New: Non type template parameter should allow object with no linkage

2018-05-01 Thread gufideg at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gufideg at gmail dot com Target Milestone: --- Even though n4268 is marked as supported fully here: https://gcc.gnu.org/projects/cxx-status.html, GCC does not yet support passing

[Bug c++/83476] Template argument deduction fails with reference template parameter

2018-05-03 Thread gufideg at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83476 Guillaume Racicot changed: What|Removed |Added Keywords||rejects-valid

[Bug c++/86859] New: error: expansion pattern contains no parameter pack when a pack from introduced in a capture is used in decltype

2018-08-04 Thread gufideg at gmail dot com
: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gufideg at gmail dot com Target Milestone: --- Here's the code snippet that triggers the bug: int main

[Bug c++/86480] New: [8 Regression] error: parameter packs not expanded with '...' in a recursive variadic lambda

2018-07-11 Thread gufideg at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gufideg at gmail dot com Target Milestone: --- The following code compiler with Clang and GCC 7.3: #include #include #include template

[Bug c++/86480] [8 Regression] error: parameter packs not expanded with '...' in a recursive variadic lambda

2018-07-11 Thread gufideg at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86480 --- Comment #2 from Guillaume Racicot --- Yes of course! I only added the `-std=c++17` flag. Here's a live example: https://godbolt.org/g/p8KLfE

[Bug c++/81700] Unresolved function type when taking address of operator() of generic lambda

2018-03-04 Thread gufideg at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81700 --- Comment #1 from Guillaume Racicot --- Still happen with 7.3 and trunk on godbolt: https://godbolt.org/g/xXUn1v

[Bug c++/91051] New: [9 Regression] Template conversion operator don't match when converting to constant rvalue reference

2019-07-01 Thread gufideg at gmail dot com
: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gufideg at gmail dot com Target Milestone: --- The following code was compiling in older GCC version, but don't compile with GCC 9.1: struct

[Bug c++/97470] New: ICE when using aggregate initialization of a particular layout with non trivial type

2020-10-17 Thread gufideg at gmail dot com via Gcc-bugs
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gufideg at gmail dot com Target Milestone: --- Here's a minimal case: struct nontrivial { nontrivial(); nontrivial(nontrivial const

[Bug c++/96917] decltype(auto) variable initialized with lambda by-reference capture has incorrect type

2022-03-22 Thread gufideg at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96917 Guillaume Racicot changed: What|Removed |Added CC||gufideg at gmail dot com