public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/53845] New: Another "error reporting routines re-entered" issue
@ 2012-07-03 19:58 jewillco at osl dot iu.edu
  2012-07-03 21:44 ` [Bug c++/53845] " paolo.carlini at oracle dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: jewillco at osl dot iu.edu @ 2012-07-03 19:58 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 53845
           Summary: Another "error reporting routines re-entered" issue
    Classification: Unclassified
           Product: gcc
           Version: 4.7.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jewillco@osl.iu.edu


This example causes "Error reporting routines re-entered", and seems to be
different from those reported so far:

struct a {};
template<typename> struct b;
template<> struct b<a> {static const int v = 3;};

template <typename L>
struct c {
  static_assert(b<L>::v == 3, "");
  using t = int;
};
template <typename E, typename T>
auto d(T x) -> decltype(((x.template e<E>()))) {return ((x.template e<E>()));}
template <typename B>
struct f {
  template <typename E>
  struct h {
    using w = int;
    typename c<E>::t x;
  };
  template <typename E>
  decltype(d<typename h<E>::w>(*(B*)nullptr)) e();
};
struct g {
  template <typename> int e();
};
int main(int argc, char** argv) {
  d<a>(f<g>{});
  return 0;
}

It is probably invalid code.  Some small variations on it cause infinite loops
(recursion depth exceeded), which also seem to be incorrect.  The full error
message for the code above with 4.7.1 is:

‘
Internal compiler error: Error reporting routines re-entered.
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-10-05 19:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-03 19:58 [Bug c++/53845] New: Another "error reporting routines re-entered" issue jewillco at osl dot iu.edu
2012-07-03 21:44 ` [Bug c++/53845] " paolo.carlini at oracle dot com
2012-07-13  0:10 ` xinliangli at gmail dot com
2012-10-04 15:35 ` paolo.carlini at oracle dot com
2012-10-04 15:44 ` jewillco at osl dot iu.edu
2012-10-04 15:55 ` paolo.carlini at oracle dot com
2012-10-05 19:40 ` paolo.carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).