public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/59240] New: ICE in varpool_get_node
@ 2013-11-21 23:10 kilobyte at angband dot pl
  2013-11-22 10:34 ` [Bug c++/59240] " rguenth at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: kilobyte at angband dot pl @ 2013-11-21 23:10 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 59240
           Summary: ICE in varpool_get_node
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kilobyte at angband dot pl

Created attachment 31266
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31266&action=edit
deltaed test case

With gcc-snapshot 20131121-1, running g++ on the attached code fails with:

cc1plus: internal compiler error: in varpool_get_node, at cgraph.h:890

(the actual file the delta comes from is valid code).


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

* [Bug c++/59240] ICE in varpool_get_node
  2013-11-21 23:10 [Bug c++/59240] New: ICE in varpool_get_node kilobyte at angband dot pl
@ 2013-11-22 10:34 ` rguenth at gcc dot gnu.org
  2013-11-22 12:24 ` kilobyte at angband dot pl
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-11-22 10:34 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2013-11-22
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.  The testcase is now invalid though (errors appear before the ICE).
Can you attach unreduced preproecessed source?  (Or re-delta with additional
checking that the testcase compiles, for example with an older GCC version?)


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

* [Bug c++/59240] ICE in varpool_get_node
  2013-11-21 23:10 [Bug c++/59240] New: ICE in varpool_get_node kilobyte at angband dot pl
  2013-11-22 10:34 ` [Bug c++/59240] " rguenth at gcc dot gnu.org
@ 2013-11-22 12:24 ` kilobyte at angband dot pl
  2014-12-12 22:02 ` paolo.carlini at oracle dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: kilobyte at angband dot pl @ 2013-11-22 12:24 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Adam Borowski <kilobyte at angband dot pl> ---
Created attachment 31271
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31271&action=edit
smaller test case that compiles with 4.8

A funny thing: this ICE does not show in the original file, it just happened
that an additional unrelated ICE popped up while deltaing a test case for
another.

It turns out that it's enough to just declare something as __weakref__,
reducing the reproducer to a single line that compiles with g++-4.8.


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

* [Bug c++/59240] ICE in varpool_get_node
  2013-11-21 23:10 [Bug c++/59240] New: ICE in varpool_get_node kilobyte at angband dot pl
  2013-11-22 10:34 ` [Bug c++/59240] " rguenth at gcc dot gnu.org
  2013-11-22 12:24 ` kilobyte at angband dot pl
@ 2014-12-12 22:02 ` paolo.carlini at oracle dot com
  2014-12-12 22:41 ` paolo.carlini at oracle dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-12-12 22:02 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
This works for me with the released 4.9.0 and mainline. I'm adding the reduced
testcase and closing the bug.


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

* [Bug c++/59240] ICE in varpool_get_node
  2013-11-21 23:10 [Bug c++/59240] New: ICE in varpool_get_node kilobyte at angband dot pl
                   ` (3 preceding siblings ...)
  2014-12-12 22:41 ` paolo.carlini at oracle dot com
@ 2014-12-12 22:41 ` paolo at gcc dot gnu.org
  2014-12-12 22:42 ` paolo.carlini at oracle dot com
  5 siblings, 0 replies; 7+ messages in thread
From: paolo at gcc dot gnu.org @ 2014-12-12 22:41 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Fri Dec 12 22:40:29 2014
New Revision: 218693

URL: https://gcc.gnu.org/viewcvs?rev=218693&root=gcc&view=rev
Log:
2014-12-12  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/59240
    * g++.dg/torture/pr59240.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/torture/pr59240.C
Modified:
    trunk/gcc/testsuite/ChangeLog


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

* [Bug c++/59240] ICE in varpool_get_node
  2013-11-21 23:10 [Bug c++/59240] New: ICE in varpool_get_node kilobyte at angband dot pl
                   ` (2 preceding siblings ...)
  2014-12-12 22:02 ` paolo.carlini at oracle dot com
@ 2014-12-12 22:41 ` paolo.carlini at oracle dot com
  2014-12-12 22:41 ` paolo at gcc dot gnu.org
  2014-12-12 22:42 ` paolo.carlini at oracle dot com
  5 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-12-12 22:41 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Closing.


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

* [Bug c++/59240] ICE in varpool_get_node
  2013-11-21 23:10 [Bug c++/59240] New: ICE in varpool_get_node kilobyte at angband dot pl
                   ` (4 preceding siblings ...)
  2014-12-12 22:41 ` paolo at gcc dot gnu.org
@ 2014-12-12 22:42 ` paolo.carlini at oracle dot com
  5 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-12-12 22:42 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.9.0


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

end of thread, other threads:[~2014-12-12 22:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-21 23:10 [Bug c++/59240] New: ICE in varpool_get_node kilobyte at angband dot pl
2013-11-22 10:34 ` [Bug c++/59240] " rguenth at gcc dot gnu.org
2013-11-22 12:24 ` kilobyte at angband dot pl
2014-12-12 22:02 ` paolo.carlini at oracle dot com
2014-12-12 22:41 ` paolo.carlini at oracle dot com
2014-12-12 22:41 ` paolo at gcc dot gnu.org
2014-12-12 22:42 ` 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).