public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/56163] New: Template instantiation limit not kicking in
@ 2013-01-31 13:57 jakub at gcc dot gnu.org
  2013-08-10 21:04 ` [Bug c++/56163] " paolo.carlini at oracle dot com
  0 siblings, 1 reply; 2+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-01-31 13:57 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 56163
           Summary: Template instantiation limit not kicking in
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jakub@gcc.gnu.org
                CC: jason@gcc.gnu.org


template <class U>
struct B
{
  typedef void type;
};
template <bool U>
struct C
{
};
template <typename T, typename E = void>
struct D {
  static const bool d = false;
};
template <typename T>
struct D<T, typename B<C<D<T>::d > >::type>
{
  static const bool d = false;
};

D<double> d;

reduced from https://bugzilla.redhat.com/show_bug.cgi?id=904652 segfaults due
to
endless recursion during instantiation, -ftemplate-depth= limit doesn't seem to
affect this.  This ICEd already with 3.2, so might not be a regression.


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

* [Bug c++/56163] Template instantiation limit not kicking in
  2013-01-31 13:57 [Bug c++/56163] New: Template instantiation limit not kicking in jakub at gcc dot gnu.org
@ 2013-08-10 21:04 ` paolo.carlini at oracle dot com
  0 siblings, 0 replies; 2+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-08-10 21:04 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-08-10
     Ever confirmed|0                           |1

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Related to c++/51488 and c++/58059


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

end of thread, other threads:[~2013-08-10 21:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-31 13:57 [Bug c++/56163] New: Template instantiation limit not kicking in jakub at gcc dot gnu.org
2013-08-10 21:04 ` [Bug c++/56163] " 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).