public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17827] New: ICE: in make_decl_rtl, at varasm.c:752
@ 2004-10-04  8:48 Woebbeking at web dot de
  2004-10-04 11:47 ` [Bug c++/17827] [3.4 Regression] " pinskia at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: Woebbeking at web dot de @ 2004-10-04  8:48 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 908 bytes --]

Hi, 
 
the following code doesn't compile. It's related to my PR 14203 (or from Debian 
BR #233548). GCC 3.4.1 works fine. 
 
 
André 
 
 
struct Dummy 
{ 
    void foo(); 
}; 
 
const bool g_bAlways = false; 
 
int main() 
{ 
    bool test; 
    if (g_bAlways) 
    { 
        if (Dummy* dummy = 0) 
        { 
            if (!test) 
            { 
                int d; 
                d = 1; 
            } 
            dummy->foo(); 
         } 
     } 
 
     return 0; 
}

-- 
           Summary: ICE: in make_decl_rtl, at varasm.c:752
           Product: gcc
           Version: 3.4.2
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: Woebbeking at web dot de
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug c++/17827] [3.4 Regression] ICE: in make_decl_rtl, at varasm.c:752
  2004-10-04  8:48 [Bug c++/17827] New: ICE: in make_decl_rtl, at varasm.c:752 Woebbeking at web dot de
@ 2004-10-04 11:47 ` pinskia at gcc dot gnu dot org
  2004-10-07  1:41 ` reichelt at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-04 11:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-04 11:47 -------
: Search converges between 2004-08-23-3.4 (#55) and 2004-08-24-3.4 (#56).
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code
      Known to fail|                            |3.4.3
      Known to work|                            |3.4.0 4.0.0
   Last reconfirmed|0000-00-00 00:00:00         |2004-10-04 11:47:49
               date|                            |
            Summary|ICE: in make_decl_rtl, at   |[3.4 Regression] ICE: in
                   |varasm.c:752                |make_decl_rtl, at
                   |                            |varasm.c:752
   Target Milestone|---                         |3.4.3


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


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

* [Bug c++/17827] [3.4 Regression] ICE: in make_decl_rtl, at varasm.c:752
  2004-10-04  8:48 [Bug c++/17827] New: ICE: in make_decl_rtl, at varasm.c:752 Woebbeking at web dot de
  2004-10-04 11:47 ` [Bug c++/17827] [3.4 Regression] " pinskia at gcc dot gnu dot org
@ 2004-10-07  1:41 ` reichelt at gcc dot gnu dot org
  2004-10-07  2:04 ` reichelt at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-10-07  1:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-10-07 01:41 -------
Here's something shorter. It also crashes gcc 3.4.0 and 3.4.1.

=================================
void foo()
{
    if (0)
        if (int* p = 0)
            int i=*p;
}
=================================

: Search converges between 2003-04-16-trunk (#231) and 2003-04-17-trunk (#232).


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
           Keywords|                            |monitored
      Known to work|3.4.0 4.0.0                 |3.3.5 4.0.0


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


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

* [Bug c++/17827] [3.4 Regression] ICE: in make_decl_rtl, at varasm.c:752
  2004-10-04  8:48 [Bug c++/17827] New: ICE: in make_decl_rtl, at varasm.c:752 Woebbeking at web dot de
  2004-10-04 11:47 ` [Bug c++/17827] [3.4 Regression] " pinskia at gcc dot gnu dot org
  2004-10-07  1:41 ` reichelt at gcc dot gnu dot org
@ 2004-10-07  2:04 ` reichelt at gcc dot gnu dot org
  2004-10-07  9:49 ` Woebbeking at web dot de
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-10-07  2:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-10-07 02:04 -------
Roger, ii looks like your patch
http://gcc.gnu.org/ml/gcc-cvs/2003-04/msg00812.html
is responsible for the regression. Could you please have a look?


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


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


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

* [Bug c++/17827] [3.4 Regression] ICE: in make_decl_rtl, at varasm.c:752
  2004-10-04  8:48 [Bug c++/17827] New: ICE: in make_decl_rtl, at varasm.c:752 Woebbeking at web dot de
                   ` (2 preceding siblings ...)
  2004-10-07  2:04 ` reichelt at gcc dot gnu dot org
@ 2004-10-07  9:49 ` Woebbeking at web dot de
  2004-10-07 10:54 ` reichelt at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Woebbeking at web dot de @ 2004-10-07  9:49 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From Woebbeking at web dot de  2004-10-07 09:49 -------
(In reply to comment #2) 
> Here's something shorter. It also crashes gcc 3.4.0 and 3.4.1. 
>  
> ================================= 
> void foo() 
> { 
>     if (0) 
>         if (int* p = 0) 
>             int i=*p; 
> } 
 
Indeed, this looks very similar to your shorter version in PR 14203. 

-- 


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


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

* [Bug c++/17827] [3.4 Regression] ICE: in make_decl_rtl, at varasm.c:752
  2004-10-04  8:48 [Bug c++/17827] New: ICE: in make_decl_rtl, at varasm.c:752 Woebbeking at web dot de
                   ` (3 preceding siblings ...)
  2004-10-07  9:49 ` Woebbeking at web dot de
@ 2004-10-07 10:54 ` reichelt at gcc dot gnu dot org
  2004-11-01  0:47 ` mmitchel at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-10-07 10:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-10-07 10:54 -------
Here's a testcase that looks even more like PR 14203
(and there's no dereferencing of the null pointer - even
if that was unreachable)

===============================
void foo()
{
  if (false)
    if (int i=0)
      int j=i;
}
===============================


-- 


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


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

* [Bug c++/17827] [3.4 Regression] ICE: in make_decl_rtl, at varasm.c:752
  2004-10-04  8:48 [Bug c++/17827] New: ICE: in make_decl_rtl, at varasm.c:752 Woebbeking at web dot de
                   ` (4 preceding siblings ...)
  2004-10-07 10:54 ` reichelt at gcc dot gnu dot org
@ 2004-11-01  0:47 ` mmitchel at gcc dot gnu dot org
  2004-12-05 10:17 ` ebotcazou at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-11-01  0:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-11-01 00:46 -------
Postponed until GCC 3.4.4.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.3                       |3.4.4


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


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

* [Bug c++/17827] [3.4 Regression] ICE: in make_decl_rtl, at varasm.c:752
  2004-10-04  8:48 [Bug c++/17827] New: ICE: in make_decl_rtl, at varasm.c:752 Woebbeking at web dot de
                   ` (5 preceding siblings ...)
  2004-11-01  0:47 ` mmitchel at gcc dot gnu dot org
@ 2004-12-05 10:17 ` ebotcazou at gcc dot gnu dot org
  2004-12-05 10:19 ` [Bug middle-end/17827] " ebotcazou at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-12-05 10:17 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2004-12-05 10:17 -------
Testing a fix.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |ebotcazou at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED


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


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

* [Bug middle-end/17827] [3.4 Regression] ICE: in make_decl_rtl, at varasm.c:752
  2004-10-04  8:48 [Bug c++/17827] New: ICE: in make_decl_rtl, at varasm.c:752 Woebbeking at web dot de
                   ` (6 preceding siblings ...)
  2004-12-05 10:17 ` ebotcazou at gcc dot gnu dot org
@ 2004-12-05 10:19 ` ebotcazou at gcc dot gnu dot org
  2004-12-07  7:54 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-12-05 10:19 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2004-12-05 10:19 -------
Recategorizing.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c++                         |middle-end


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


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

* [Bug middle-end/17827] [3.4 Regression] ICE: in make_decl_rtl, at varasm.c:752
  2004-10-04  8:48 [Bug c++/17827] New: ICE: in make_decl_rtl, at varasm.c:752 Woebbeking at web dot de
                   ` (7 preceding siblings ...)
  2004-12-05 10:19 ` [Bug middle-end/17827] " ebotcazou at gcc dot gnu dot org
@ 2004-12-07  7:54 ` cvs-commit at gcc dot gnu dot org
  2004-12-07  7:55 ` ebotcazou at gcc dot gnu dot org
  2005-03-16  1:08 ` reichelt at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-12-07  7:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-12-07 07:54 -------
Subject: Bug 17827

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	ebotcazou@gcc.gnu.org	2004-12-07 07:54:00

Modified files:
	gcc            : ChangeLog c-semantics.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/g++.dg/other: unreachable1.C 

Log message:
	PR middle-end/17827
	* c-semantics.c (expand_unreachable_if_stmt): Invoke
	expand_cond on the condition.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.723&r2=2.2326.2.724
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-semantics.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.74.4.3&r2=1.74.4.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3389.2.318&r2=1.3389.2.319
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/other/unreachable1.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1



-- 


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


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

* [Bug middle-end/17827] [3.4 Regression] ICE: in make_decl_rtl, at varasm.c:752
  2004-10-04  8:48 [Bug c++/17827] New: ICE: in make_decl_rtl, at varasm.c:752 Woebbeking at web dot de
                   ` (8 preceding siblings ...)
  2004-12-07  7:54 ` cvs-commit at gcc dot gnu dot org
@ 2004-12-07  7:55 ` ebotcazou at gcc dot gnu dot org
  2005-03-16  1:08 ` reichelt at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-12-07  7:55 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2004-12-07 07:55 -------
See http://gcc.gnu.org/ml/gcc-patches/2004-12/msg00407.html


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


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


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

* [Bug middle-end/17827] [3.4 Regression] ICE: in make_decl_rtl, at varasm.c:752
  2004-10-04  8:48 [Bug c++/17827] New: ICE: in make_decl_rtl, at varasm.c:752 Woebbeking at web dot de
                   ` (9 preceding siblings ...)
  2004-12-07  7:55 ` ebotcazou at gcc dot gnu dot org
@ 2005-03-16  1:08 ` reichelt at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-03-16  1:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-03-16 01:08 -------
*** Bug 20485 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jes at bodi-klinke dot dk


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


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

end of thread, other threads:[~2005-03-16  1:08 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-04  8:48 [Bug c++/17827] New: ICE: in make_decl_rtl, at varasm.c:752 Woebbeking at web dot de
2004-10-04 11:47 ` [Bug c++/17827] [3.4 Regression] " pinskia at gcc dot gnu dot org
2004-10-07  1:41 ` reichelt at gcc dot gnu dot org
2004-10-07  2:04 ` reichelt at gcc dot gnu dot org
2004-10-07  9:49 ` Woebbeking at web dot de
2004-10-07 10:54 ` reichelt at gcc dot gnu dot org
2004-11-01  0:47 ` mmitchel at gcc dot gnu dot org
2004-12-05 10:17 ` ebotcazou at gcc dot gnu dot org
2004-12-05 10:19 ` [Bug middle-end/17827] " ebotcazou at gcc dot gnu dot org
2004-12-07  7:54 ` cvs-commit at gcc dot gnu dot org
2004-12-07  7:55 ` ebotcazou at gcc dot gnu dot org
2005-03-16  1:08 ` reichelt 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).