This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/47336] [C++0x] ICE: "Error reporting routines re-entered"
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 18 Apr 2011 23:23:41 +0000
- Subject: [Bug c++/47336] [C++0x] ICE: "Error reporting routines re-entered"
- Auto-submitted: auto-generated
- References: <bug-47336-4@http.gcc.gnu.org/bugzilla/>
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;