public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/53846] New: [c++11] memory exhaustion on simple recursive function template that uses decltype
@ 2012-07-03 20:36 eric.niebler at gmail dot com
  2012-07-04  6:43 ` [Bug c++/53846] " daniel.kruegler at googlemail dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: eric.niebler at gmail dot com @ 2012-07-03 20:36 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 53846
           Summary: [c++11] memory exhaustion on simple recursive function
                    template that uses decltype
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: eric.niebler@gmail.com


Created attachment 27738
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27738
g++ -std=gnu++11 -c test_eric2.cpp

The attached code, compiled with -std=gnu++11, causes the compiler to exhaust
the heap. With fewer arguments to the back() function it succeeds, but quickly
runs into compile time troubles.


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

* [Bug c++/53846] [c++11] memory exhaustion on simple recursive function template that uses decltype
  2012-07-03 20:36 [Bug c++/53846] New: [c++11] memory exhaustion on simple recursive function template that uses decltype eric.niebler at gmail dot com
@ 2012-07-04  6:43 ` daniel.kruegler at googlemail dot com
  2012-07-04  9:31 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: daniel.kruegler at googlemail dot com @ 2012-07-04  6:43 UTC (permalink / raw)
  To: gcc-bugs

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

Daniel Krügler <daniel.kruegler at googlemail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel.kruegler at
                   |                            |googlemail dot com

--- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> 2012-07-04 06:43:20 UTC ---
Same problem with gcc 4.8.0 20120624 (experimental)


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

* [Bug c++/53846] [c++11] memory exhaustion on simple recursive function template that uses decltype
  2012-07-03 20:36 [Bug c++/53846] New: [c++11] memory exhaustion on simple recursive function template that uses decltype eric.niebler at gmail dot com
  2012-07-04  6:43 ` [Bug c++/53846] " daniel.kruegler at googlemail dot com
@ 2012-07-04  9:31 ` rguenth at gcc dot gnu.org
  2013-05-02 21:12 ` zeratul976 at hotmail dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-07-04  9:31 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-07-04
     Ever Confirmed|0                           |1
      Known to fail|                            |4.4.7, 4.5.4, 4.6.3, 4.7.1,
                   |                            |4.8.0

--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-07-04 09:31:15 UTC ---
Confirmed, fails this way since forever.


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

* [Bug c++/53846] [c++11] memory exhaustion on simple recursive function template that uses decltype
  2012-07-03 20:36 [Bug c++/53846] New: [c++11] memory exhaustion on simple recursive function template that uses decltype eric.niebler at gmail dot com
  2012-07-04  6:43 ` [Bug c++/53846] " daniel.kruegler at googlemail dot com
  2012-07-04  9:31 ` rguenth at gcc dot gnu.org
@ 2013-05-02 21:12 ` zeratul976 at hotmail dot com
  2013-05-03  9:47 ` paolo.carlini at oracle dot com
  2021-08-09 20:06 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: zeratul976 at hotmail dot com @ 2013-05-02 21:12 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #3 from Nathan Ridge <zeratul976 at hotmail dot com> 2013-05-02 21:12:27 UTC ---
This seems to be fixed in the 4.8.0 release. Close?


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

* [Bug c++/53846] [c++11] memory exhaustion on simple recursive function template that uses decltype
  2012-07-03 20:36 [Bug c++/53846] New: [c++11] memory exhaustion on simple recursive function template that uses decltype eric.niebler at gmail dot com
                   ` (2 preceding siblings ...)
  2013-05-02 21:12 ` zeratul976 at hotmail dot com
@ 2013-05-03  9:47 ` paolo.carlini at oracle dot com
  2021-08-09 20:06 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-05-03  9:47 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2013-05-03 09:47:02 UTC ---
It would be nice to either track down which patch fixed it (I vaguely remember
something but I'm not sure) or have a testcase failing quickly and sharply.


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

* [Bug c++/53846] [c++11] memory exhaustion on simple recursive function template that uses decltype
  2012-07-03 20:36 [Bug c++/53846] New: [c++11] memory exhaustion on simple recursive function template that uses decltype eric.niebler at gmail dot com
                   ` (3 preceding siblings ...)
  2013-05-03  9:47 ` paolo.carlini at oracle dot com
@ 2021-08-09 20:06 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-09 20:06 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53846

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |compile-time-hog

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
clang takes a hugely long time.

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

end of thread, other threads:[~2021-08-09 20:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-03 20:36 [Bug c++/53846] New: [c++11] memory exhaustion on simple recursive function template that uses decltype eric.niebler at gmail dot com
2012-07-04  6:43 ` [Bug c++/53846] " daniel.kruegler at googlemail dot com
2012-07-04  9:31 ` rguenth at gcc dot gnu.org
2013-05-02 21:12 ` zeratul976 at hotmail dot com
2013-05-03  9:47 ` paolo.carlini at oracle dot com
2021-08-09 20:06 ` pinskia at gcc dot gnu.org

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