[Bug c++/89611] Compilation ok with 'class', but ko with 'struct'

2019-03-06 Thread xavier at cremaschi dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89611 --- Comment #1 from xavier at cremaschi dot fr --- I forgot that default inheritance is private. My bad. This is NOT a bug.

[Bug c++/89611] New: Compilation ok with 'class', but ko with 'struct'

2019-03-06 Thread xavier at cremaschi dot fr
3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: xavier at cremaschi dot fr Target Milestone: --- $ g++ --version g++ (Debian 8.2.0-21) 8.2.0 The following code compiles : #include #include #include using namespace std; template

[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

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

2019-03-06 Thread xavier at cremaschi dot fr
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: xavier at cremaschi dot fr Target Milestone: --- $ g++ --version g++ (Debian 8.2.0-21) 8.2.0 The following code does not compile : #include #include #include using namespace std