[Bug c++/89605] A method cannot have two identical lambdas as default arguments

2021-04-21 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89605 Marek Polacek changed: What|Removed |Added Resolution|--- |DUPLICATE Status|NEW

[Bug c++/89605] A method cannot have two identical lambdas as default arguments

2020-10-30 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89605 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org,

[Bug c++/89605] A method cannot have two identical lambdas as default arguments

2019-03-06 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89605 Jonathan Wakely changed: What|Removed |Added Keywords||ice-on-valid-code

[Bug c++/89605] A method cannot have two identical lambdas as default arguments

2019-03-06 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89605 --- Comment #3 from Jonathan Wakely --- The code *does* compile, but GCC outputs duplicate symbols, so it doesn't assemble (or link).

[Bug c++/89605] A method cannot have two identical lambdas as default arguments

2019-03-06 Thread xavier at cremaschi dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89605 --- Comment #2 from xavier at cremaschi dot fr --- rguenth are you sure for the 'link-failure' keyword ? It's truly a compilation error, triggered while compiling a given c++ file, it does NOT wait until linking to fail.

[Bug c++/89605] A method cannot have two identical lambdas as default arguments

2019-03-06 Thread xavier at cremaschi dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89605 --- Comment #1 from xavier at cremaschi dot fr --- FYI it also compiles if there is no class but just a free function : #include #include #include using namespace std; using ConverterFunction = function; void _foo( const