This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/47336] [C++0x] ICE: "Error reporting routines re-entered"


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

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-04-18 23:23:36 UTC ---
Here's another example which produces the "error reporting routines re-entered"
ICE, this time on invalid code:


template<typename T> T declval();

template<typename T>
struct S {

  template<typename U>
    static U get(const volatile T&);

  template<typename U>
    static decltype(*declval<U>()) get(...);

  typedef decltype(get<T>(declval<T>())) type;
};

struct X { };

S<X>::type x;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]