https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69436
--- Comment #6 from vmorgulys at gmail dot com ---
Hello Jonathan,
I have another similar issue with auto and deleted contructrors
("=delete"). They are not detected at compile time.
Do you think it is related to what you mention in your
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69436
Jonathan Wakely changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69436
--- Comment #2 from Jonathan Wakely ---
(In reply to vmorgulys from comment #0)
> auto& f2(auto v)
This is not standard C++, it's part of the Concepts TS, and so doesn't work
properly until GCC 6.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69436
--- Comment #1 from Andrew Pinski ---
I think the problem is the two auto are considered the same. I don't know the
C++ standard in these places to say if GCC should reject or accept it so I
cannot comment on that.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69436
--- Comment #4 from TC ---
Although this still breaks on trunk GCC on Wandbox:
long x;
auto& f(auto) { return x; }
auto* g(auto) { return }
auto r = f(1);
auto p = g(1);
prog.cc: In instantiation of 'auto& f(auto:1) [with auto:1 = int]':
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69436
TC changed:
What|Removed |Added
CC||rs2740 at gmail dot com
--- Comment #3 from TC