public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/37511]  New: ice for simple legal C++ code
@ 2008-09-13 19:54 dcb314 at hotmail dot com
  2008-09-13 19:55 ` [Bug c++/37511] " dcb314 at hotmail dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: dcb314 at hotmail dot com @ 2008-09-13 19:54 UTC (permalink / raw)
  To: gcc-bugs

I just tried to compile the following C++ code with
most recent snapshot of gcc version 4.4, dated 20080912.

# include <iostream>
# include <math.h>

using namespace std;

int
main()
{
        for (size_t i = 0; i < 16; ++i)
        {
                cout << i << ' ' << sqrt( i) << '\n';
        }
        return 0;
};

The compiler said

feb25.cc:15: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Here is valgrind providing a stack backtrace.

==3329== Invalid read of size 2
==3329==    at 0x6CE642: invoke_set_current_function_hook (function.c:3867)
==3329==    by 0x9B5721: cgraph_release_function_body (cgraph.c:852)
==3329==    by 0x9B690F: cgraph_remove_node (cgraph.c:967)
==3329==    by 0x9D66BD: cgraph_remove_unreachable_nodes (ipa.c:191)
==3329==    by 0x9BA19B: cgraph_optimize (cgraphunit.c:1271)
==3329==    by 0x49F544: cp_write_global_declarations (decl2.c:3608)
==3329==    by 0x7F7610: toplev_main (toplev.c:979)
==3329==    by 0x52D3435: (below main) (in /lib64/libc-2.8.so)
==3329==  Address 0xa5a5a5a5a5a5a5a5 is not stack'd, malloc'd or (recently)
free'd

Preprocessed source code attached. No special flags required.


-- 
           Summary: ice for simple legal C++ code
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dcb314 at hotmail dot com


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


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

* [Bug c++/37511] ice for simple legal C++ code
  2008-09-13 19:54 [Bug c++/37511] New: ice for simple legal C++ code dcb314 at hotmail dot com
@ 2008-09-13 19:55 ` dcb314 at hotmail dot com
  2008-09-13 19:59 ` rguenth at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: dcb314 at hotmail dot com @ 2008-09-13 19:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from dcb314 at hotmail dot com  2008-09-13 19:54 -------
Created an attachment (id=16313)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16313&action=view)
C++ source code


-- 


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


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

* [Bug c++/37511] ice for simple legal C++ code
  2008-09-13 19:54 [Bug c++/37511] New: ice for simple legal C++ code dcb314 at hotmail dot com
  2008-09-13 19:55 ` [Bug c++/37511] " dcb314 at hotmail dot com
@ 2008-09-13 19:59 ` rguenth at gcc dot gnu dot org
  2008-09-13 20:04   ` Andrew Thomas Pinski
  2008-09-13 20:05 ` pinskia at gmail dot com
                   ` (3 subsequent siblings)
  5 siblings, 1 reply; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-09-13 19:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2008-09-13 19:58 -------
works for me.  Honza, I guess you fixed this recently?


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hubicka at gcc dot gnu dot
                   |                            |org


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


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

* Re: [Bug c++/37511] ice for simple legal C++ code
  2008-09-13 19:59 ` rguenth at gcc dot gnu dot org
@ 2008-09-13 20:04   ` Andrew Thomas Pinski
  0 siblings, 0 replies; 8+ messages in thread
From: Andrew Thomas Pinski @ 2008-09-13 20:04 UTC (permalink / raw)
  To: gcc-bugzilla; +Cc: gcc-bugs



Sent from my iPhone

On Sep 13, 2008, at 12:58 PM, "rguenth at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org 
 > wrote:

>
>
> ------- Comment #2 from rguenth at gcc dot gnu dot org  2008-09-13  
> 19:58 -------
> works for me.  Honza, I guess you fixed this recently?

I think this was fixed by the pt.c change.

>
>
>
> -- 
>
> rguenth at gcc dot gnu dot org changed:
>
>           What    |Removed                     |Added
> --- 
> --- 
> ----------------------------------------------------------------------
>                 CC|                            |hubicka at gcc dot  
> gnu dot
>                   |                            |org
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37511
>


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

* [Bug c++/37511] ice for simple legal C++ code
  2008-09-13 19:54 [Bug c++/37511] New: ice for simple legal C++ code dcb314 at hotmail dot com
  2008-09-13 19:55 ` [Bug c++/37511] " dcb314 at hotmail dot com
  2008-09-13 19:59 ` rguenth at gcc dot gnu dot org
@ 2008-09-13 20:05 ` pinskia at gmail dot com
  2008-09-13 22:30 ` hubicka at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: pinskia at gmail dot com @ 2008-09-13 20:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gmail dot com  2008-09-13 20:04 -------
Subject: Re:  ice for simple legal C++ code



Sent from my iPhone

On Sep 13, 2008, at 12:58 PM, "rguenth at gcc dot gnu dot org"
<gcc-bugzilla@gcc.gnu.org 
 > wrote:

>
>
> ------- Comment #2 from rguenth at gcc dot gnu dot org  2008-09-13  
> 19:58 -------
> works for me.  Honza, I guess you fixed this recently?

I think this was fixed by the pt.c change.

>
>
>
> -- 
>
> rguenth at gcc dot gnu dot org changed:
>
>           What    |Removed                     |Added
> --- 
> --- 
> ----------------------------------------------------------------------
>                 CC|                            |hubicka at gcc dot  
> gnu dot
>                   |                            |org
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37511
>


-- 


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


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

* [Bug c++/37511] ice for simple legal C++ code
  2008-09-13 19:54 [Bug c++/37511] New: ice for simple legal C++ code dcb314 at hotmail dot com
                   ` (2 preceding siblings ...)
  2008-09-13 20:05 ` pinskia at gmail dot com
@ 2008-09-13 22:30 ` hubicka at gcc dot gnu dot org
  2008-09-14  1:18 ` pinskia at gcc dot gnu dot org
  2008-09-14  1:18 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 8+ messages in thread
From: hubicka at gcc dot gnu dot org @ 2008-09-13 22:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from hubicka at gcc dot gnu dot org  2008-09-13 22:29 -------
Yes, it is almost definitly same problem.

Honza


-- 

hubicka at gcc dot gnu dot org changed:

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


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


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

* [Bug c++/37511] ice for simple legal C++ code
  2008-09-13 19:54 [Bug c++/37511] New: ice for simple legal C++ code dcb314 at hotmail dot com
                   ` (3 preceding siblings ...)
  2008-09-13 22:30 ` hubicka at gcc dot gnu dot org
@ 2008-09-14  1:18 ` pinskia at gcc dot gnu dot org
  2008-09-14  1:18 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-09-14  1:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2008-09-14 01:17 -------
Reopening to ...


-- 

pinskia at gcc dot gnu dot org changed:

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


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


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

* [Bug c++/37511] ice for simple legal C++ code
  2008-09-13 19:54 [Bug c++/37511] New: ice for simple legal C++ code dcb314 at hotmail dot com
                   ` (4 preceding siblings ...)
  2008-09-14  1:18 ` pinskia at gcc dot gnu dot org
@ 2008-09-14  1:18 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-09-14  1:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pinskia at gcc dot gnu dot org  2008-09-14 01:17 -------
Mark as a dup of bug 37500.

*** This bug has been marked as a duplicate of 37500 ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2008-09-14  1:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-13 19:54 [Bug c++/37511] New: ice for simple legal C++ code dcb314 at hotmail dot com
2008-09-13 19:55 ` [Bug c++/37511] " dcb314 at hotmail dot com
2008-09-13 19:59 ` rguenth at gcc dot gnu dot org
2008-09-13 20:04   ` Andrew Thomas Pinski
2008-09-13 20:05 ` pinskia at gmail dot com
2008-09-13 22:30 ` hubicka at gcc dot gnu dot org
2008-09-14  1:18 ` pinskia at gcc dot gnu dot org
2008-09-14  1:18 ` pinskia at gcc dot gnu dot 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).