https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89605
Marek Polacek changed:
What|Removed |Added
Resolution|--- |DUPLICATE
Status|NEW
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89605
Jakub Jelinek changed:
What|Removed |Added
CC||jakub 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
Status|U
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).
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.
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 Con