http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59877

Volker Reichelt <reichelt at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-02-15
      Known to work|4.7.0, 4.7.1, 4.7.2         |
            Summary|[4.7 Regression] ICE: Error |[4.7 Regression] [c++11]
                   |reporting routines          |ICE: Error reporting
                   |re-entered.                 |routines re-entered.
     Ever confirmed|0                           |1
      Known to fail|                            |4.7.0, 4.7.1, 4.7.2

--- Comment #3 from Volker Reichelt <reichelt at gcc dot gnu.org> ---
Confirmed. Here's a reduced testcase that demonstrates the problem with GCC
4.7.x
(compile with "-std=c++11"):

=============================================================
template<typename T> int* foo(T t)
{
  return t;
}

template<typename> struct A
{
  static void bar();

  template<typename T> static decltype(bar()) baz(T t)
  {
    foo(t);
  }
};

void foo()
{
  A<int>::baz(0);
}
=============================================================

Reply via email to