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++/16564] g++ seems to go into an infinite loop after errors


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

--- Comment #18 from Volker Reichelt <reichelt at gcc dot gnu.org> ---
The reduced testcases from comment #3 and #4 compile within split-seconds since
GCC 4 5.0. This is partially due to Manuel's fix for PR 23510.

However, the original testcase still takes a veeeeery long time.
This can be demonstrated with the following reduced testcase:

================================
template<typename> struct A
{
  A<A> a;
  A() {}
};

A<int> a;
================================

The first error message about exceeding the maximum template instantiation
depth appears rather quickly. So maybe we could make the first error message a
fatal one to avoid further processing of potentially bogus nested classes.


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