https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60420

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-09-19
     Ever confirmed|0                           |1

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> ---
In mainline we don't ICE anymore. This is enough to reproduce the issue:

struct Iterator
{
  int& operator*();
};

void foo(Iterator begin)
{
  auto x = [](const decltype(*begin)) { };
}

Note, anyway, that the EDG front-end warns.

Reply via email to