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

* [Bug c++/53845] Another "error reporting routines re-entered" issue
  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 ` paolo.carlini at oracle dot com
  2012-07-13  0:10 ` xinliangli at gmail dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-07-03 21:44 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-07-03
     Ever Confirmed|0                           |1

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-07-03 21:44:41 UTC ---
push_tinst_level tries to error out even when called (during diagnostics) by a
deduction_tsubst_fntype which is passed a complain not including tf_error.


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

* [Bug c++/53845] Another "error reporting routines re-entered" issue
  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
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: xinliangli at gmail dot com @ 2012-07-13  0:10 UTC (permalink / raw)
  To: gcc-bugs

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

davidxl <xinliangli at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |xinliangli at gmail dot com

--- Comment #2 from davidxl <xinliangli at gmail dot com> 2012-07-13 00:10:07 UTC ---
(In reply to comment #1)
> push_tinst_level tries to error out even when called (during diagnostics) by a
> deduction_tsubst_fntype which is passed a complain not including tf_error.


Similar ICE can also be triggered in many cases with -fdump-tree-all option.
The dumper tries to print template parameters which triggers template
instantiation (odd). The instantiation may fail for unknown reason causing the
ICE.

David


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

* [Bug c++/53845] Another "error reporting routines re-entered" issue
  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
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-10-04 15:35 UTC (permalink / raw)
  To: gcc-bugs


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |paolo.carlini at oracle dot
                   |                            |com

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-10-04 15:34:56 UTC ---
With current mainline the testcase is actually accepted. Is it really invalid?


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

* [Bug c++/53845] Another "error reporting routines re-entered" issue
  2012-07-03 19:58 [Bug c++/53845] New: Another "error reporting routines re-entered" issue jewillco at osl dot iu.edu
                   ` (2 preceding siblings ...)
  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
  5 siblings, 0 replies; 7+ messages in thread
From: jewillco at osl dot iu.edu @ 2012-10-04 15:44 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #4 from Jeremiah Willcock <jewillco at osl dot iu.edu> 2012-10-04 15:43:30 UTC ---
I don't know whether it is valid or not after all of the trimming I did on it.


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

* [Bug c++/53845] Another "error reporting routines re-entered" issue
  2012-07-03 19:58 [Bug c++/53845] New: Another "error reporting routines re-entered" issue jewillco at osl dot iu.edu
                   ` (3 preceding siblings ...)
  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
  5 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-10-04 15:55 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-10-04 15:55:26 UTC ---
Minimally, can somebody check clang? Lately we fixed quite a few "error
reporting routines re-entered" issues and if the testcase isn't even invalid
there is no point in keeping the Bug report open. Thanks.


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

* [Bug c++/53845] Another "error reporting routines re-entered" issue
  2012-07-03 19:58 [Bug c++/53845] New: Another "error reporting routines re-entered" issue jewillco at osl dot iu.edu
                   ` (4 preceding siblings ...)
  2012-10-04 15:55 ` paolo.carlini at oracle dot com
@ 2012-10-05 19:40 ` paolo.carlini at oracle dot com
  5 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-10-05 19:40 UTC (permalink / raw)
  To: gcc-bugs


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|paolo.carlini at oracle dot |
                   |com                         |
         Resolution|                            |FIXED
   Target Milestone|---                         |4.8.0

--- Comment #6 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-10-05 19:39:53 UTC ---
For sure the "error reporting routines re-entered" is gone.


^ 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).