http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57575
Anass Lasram changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
++
Assignee: unassigned at gcc dot gnu.org
Reporter: anass.lasram at gmail dot com
// the following code compiles but it should not
float f() { return 0.f; }
template
void take_f(F&& f) {}
int main()
{
// this is OK. reference collapsing
take_f(f);
// next line
++
Assignee: unassigned at gcc dot gnu.org
Reporter: anass.lasram at gmail dot com
Created attachment 30279
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30279&action=edit
sources, compiler details and command line
#include
#include
// #define DISABLE_COMPIL