public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/23089] New: internal compiler error: in int_mode_for_mode, at stor-layout.c:251 at -O1
@ 2005-07-27  2:31 flash at pobox dot com
  2005-07-27  2:33 ` [Bug c++/23089] " flash at pobox dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: flash at pobox dot com @ 2005-07-27  2:31 UTC (permalink / raw)
  To: gcc-bugs

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

The session below, with the file below, gives "internal compiler error: in int_mode_for_mode, at stor-
layout.c:251".  The error only occurs at -O1 or higher.  This sounds like bug 17407, but that's 
supposedly fixed and didn't require optimization.  The file is an odd-looking Delta reduction of a much 
larger file, which was originally supposed to be valid code; but I haven't gotten the include paths set up 
properly yet.

File:
{
};
class NameOne;
{
{
    {
       {
    {
    }
    {
    }
       }
   }
      }
}
struct NameTwo::private_data {
 struct offsets {
 };
};
class NameThree : public NameFour {
     NameThree( NameOne frame,
        const char *name,
        NameFive *target,
        float min,
        float max,
        orientation direction);
};
NameThree::NameThree(NameOne frame, const char *name, NameFive *target, float minv, float maxv, 
orientation direction)
 : NameFour(frame, name, target, minv, maxv, direction)


Session:
9> /opt/gcc401chk/bin/g++ -v -O1 ../cpp/bugfiles/GCC_bugfiles/error/105107_OutlineView_min.ii
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../configure --enable-checking --prefix=/opt/gcc401chk --enable-languages=c,c+
+
Thread model: posix
gcc version 4.0.1
 /opt/gcc401chk/libexec/gcc/i686-pc-linux-gnu/4.0.1/cc1plus -fpreprocessed ../cpp/bugfiles/
GCC_bugfiles/error/105107_OutlineView_min.ii -quiet -dumpbase 105107_OutlineView_min.ii -
mtune=pentiumpro -auxbase 105107_OutlineView_min -O1 -version -o /tmp/cctwDCac.s
GNU C++ version 4.0.1 (i686-pc-linux-gnu)
        compiled by GNU C version 3.3.4 (pre 3.3.5 20040809).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
…
../cpp/bugfiles/GCC_bugfiles/error/105107_OutlineView_min.ii:28: internal compiler error: in 
int_mode_for_mode, at stor-layout.c:251
Please submit a full bug report,
…

-- 
           Summary: internal compiler error: in int_mode_for_mode, at stor-
                    layout.c:251 at -O1
           Product: gcc
           Version: 4.0.1
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: flash at pobox dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug c++/23089] internal compiler error: in int_mode_for_mode, at stor-layout.c:251 at -O1
  2005-07-27  2:31 [Bug c++/23089] New: internal compiler error: in int_mode_for_mode, at stor-layout.c:251 at -O1 flash at pobox dot com
@ 2005-07-27  2:33 ` flash at pobox dot com
  2005-07-27  2:42 ` [Bug c++/23089] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: flash at pobox dot com @ 2005-07-27  2:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From flash at pobox dot com  2005-07-27 02:30 -------
Created an attachment (id=9370)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9370&action=view)
105107_OutlineView_min.ii

Delta-reduced file.  
PalmSource bug 105107.

-- 


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


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

* [Bug c++/23089] [4.0/4.1 Regression] internal compiler error: in int_mode_for_mode, at stor-layout.c:251 at -O1
  2005-07-27  2:31 [Bug c++/23089] New: internal compiler error: in int_mode_for_mode, at stor-layout.c:251 at -O1 flash at pobox dot com
  2005-07-27  2:33 ` [Bug c++/23089] " flash at pobox dot com
@ 2005-07-27  2:42 ` pinskia at gcc dot gnu dot org
  2005-07-27  2:44 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-27  2:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-27 02:33 -------
Confirmed, a regression from 3.4.0.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |error-recovery, ice-on-
                   |                            |invalid-code
      Known to fail|                            |4.0.0 4.1.0
      Known to work|                            |3.4.0 3.3.3
   Last reconfirmed|0000-00-00 00:00:00         |2005-07-27 02:33:52
               date|                            |
            Summary|internal compiler error: in |[4.0/4.1 Regression]
                   |int_mode_for_mode, at stor- |internal compiler error: in
                   |layout.c:251 at -O1         |int_mode_for_mode, at stor-
                   |                            |layout.c:251 at -O1
   Target Milestone|---                         |4.0.2


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


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

* [Bug c++/23089] [4.0/4.1 Regression] internal compiler error: in int_mode_for_mode, at stor-layout.c:251 at -O1
  2005-07-27  2:31 [Bug c++/23089] New: internal compiler error: in int_mode_for_mode, at stor-layout.c:251 at -O1 flash at pobox dot com
  2005-07-27  2:33 ` [Bug c++/23089] " flash at pobox dot com
  2005-07-27  2:42 ` [Bug c++/23089] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-07-27  2:44 ` pinskia at gcc dot gnu dot org
  2005-07-27  5:27 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-27  2:44 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-27 02:42 -------
A more reduced testcase:
class NameOne;
void f(NameOne){}

-- 


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


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

* [Bug c++/23089] [4.0/4.1 Regression] internal compiler error: in int_mode_for_mode, at stor-layout.c:251 at -O1
  2005-07-27  2:31 [Bug c++/23089] New: internal compiler error: in int_mode_for_mode, at stor-layout.c:251 at -O1 flash at pobox dot com
                   ` (2 preceding siblings ...)
  2005-07-27  2:44 ` pinskia at gcc dot gnu dot org
@ 2005-07-27  5:27 ` pinskia at gcc dot gnu dot org
  2005-08-18 15:26 ` reichelt at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-27  5:27 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-27 02:44 -------
Here is the backtrace for 4.10:
#2  0x08487dde in int_mode_for_mode (mode=248) at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/
stor-layout.c:248
#3  0x082e44e1 in emit_move_via_integer (mode=VOIDmode, x=0xb7cd6830, y=0xb7c3aeac) at /
home/peshtigo/pinskia/src/gnu/gcc/src/gcc/expr.c:2818
#4  0x082f0959 in emit_move_insn_1 (x=0xb7cd6830, y=0xb7c3aeac) at /home/peshtigo/pinskia/
src/gnu/gcc/src/gcc/expr.c:3119
#5  0x082f0f8c in emit_move_insn (x=0xb7cd6830, y=Variable "y" is not available.
) at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/expr.c:3182
#6  0x08337cf5 in assign_parm_setup_reg (all=0xbfe41d14, parm=0xb7c3c730, data=0xbfe41d6c) at 
/home/peshtigo/pinskia/src/gnu/gcc/src/gcc/function.c:2685
#7  0x0833c185 in assign_parms (fndecl=0xb7cd7e80) at /home/peshtigo/pinskia/src/gnu/gcc/src/
gcc/function.c:2964
#8  0x0833cf15 in expand_function_start (subr=0xb7cd7e80) at /home/peshtigo/pinskia/src/gnu/
gcc/src/gcc/function.c:4168


For 4.0.0:
#0  internal_error (msgid=0x8630797 "int_mode_for_mode") at /home/peshtigo/pinskia/src/gnu/gcc/
src/gcc/diagnostic.c:496
#1  0x082a35bf in fancy_abort (file=0x8630797 "int_mode_for_mode", line=251, function=0x8630797 
"int_mode_for_mode")
    at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/diagnostic.c:556
#2  0x084795de in int_mode_for_mode (mode=140707735) at /home/peshtigo/pinskia/src/gnu/gcc/
src/gcc/stor-layout.c:251
#3  0x082e0cb1 in emit_move_via_integer (mode=VOIDmode, x=0xb7d68860, y=0xb7ce2edc) at /
home/peshtigo/pinskia/src/gnu/gcc/src/gcc/expr.c:2761
#4  0x082efa0a in emit_move_insn_1 (x=0xb7d68860, y=0xb7ce2edc) at /home/peshtigo/pinskia/
src/gnu/gcc/src/gcc/expr.c:3056
#5  0x082f0085 in emit_move_insn (x=0xb7d68860, y=Variable "y" is not available.
) at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/expr.c:3119
#6  0x08335742 in assign_parm_setup_reg (all=0xbffc1d68, parm=0xb7d70000, data=0xbffc1dbc) at 
/home/peshtigo/pinskia/src/gnu/gcc/src/gcc/function.c:2838
#7  0x0833adbb in assign_parms (fndecl=0xb7d700d8) at /home/peshtigo/pinskia/src/gnu/gcc/src/
gcc/function.c:3126
#8  0x0833b1c7 in expand_function_start (subr=0xb7d700d8) at /home/peshtigo/pinskia/src/gnu/
gcc/src/gcc/function.c:4218


-- 


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


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

* [Bug c++/23089] [4.0/4.1 Regression] internal compiler error: in int_mode_for_mode, at stor-layout.c:251 at -O1
  2005-07-27  2:31 [Bug c++/23089] New: internal compiler error: in int_mode_for_mode, at stor-layout.c:251 at -O1 flash at pobox dot com
                   ` (3 preceding siblings ...)
  2005-07-27  5:27 ` pinskia at gcc dot gnu dot org
@ 2005-08-18 15:26 ` reichelt at gcc dot gnu dot org
  2005-08-22  8:48 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-08-18 15:26 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-08-18 15:25 -------
Testing a patch.

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


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


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

* [Bug c++/23089] [4.0/4.1 Regression] internal compiler error: in int_mode_for_mode, at stor-layout.c:251 at -O1
  2005-07-27  2:31 [Bug c++/23089] New: internal compiler error: in int_mode_for_mode, at stor-layout.c:251 at -O1 flash at pobox dot com
                   ` (4 preceding siblings ...)
  2005-08-18 15:26 ` reichelt at gcc dot gnu dot org
@ 2005-08-22  8:48 ` cvs-commit at gcc dot gnu dot org
  2005-08-22  8:50 ` cvs-commit at gcc dot gnu dot org
  2005-08-22  9:03 ` reichelt at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-22  8:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-08-22 08:37 -------
Subject: Bug 23089

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	reichelt@gcc.gnu.org	2005-08-22 08:37:18

Modified files:
	gcc/cp         : ChangeLog decl.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/g++.dg/other: incomplete1.C 

Log message:
	PR c++/23089
	* decl.c (require_complete_types_for_parms): Mark incomplete types
	as invalid.
	
	* g++.dg/other/incomplete1.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4852&r2=1.4853
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&r1=1.1418&r2=1.1419
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5945&r2=1.5946
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/other/incomplete1.C.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug c++/23089] [4.0/4.1 Regression] internal compiler error: in int_mode_for_mode, at stor-layout.c:251 at -O1
  2005-07-27  2:31 [Bug c++/23089] New: internal compiler error: in int_mode_for_mode, at stor-layout.c:251 at -O1 flash at pobox dot com
                   ` (5 preceding siblings ...)
  2005-08-22  8:48 ` cvs-commit at gcc dot gnu dot org
@ 2005-08-22  8:50 ` cvs-commit at gcc dot gnu dot org
  2005-08-22  9:03 ` reichelt at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-22  8:50 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-08-22 08:48 -------
Subject: Bug 23089

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-4_0-branch
Changes by:	reichelt@gcc.gnu.org	2005-08-22 08:48:06

Modified files:
	gcc/cp         : ChangeLog decl.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/g++.dg/other: incomplete1.C 

Log message:
	PR c++/23089
	* decl.c (require_complete_types_for_parms): Mark incomplete types
	as invalid.
	
	* g++.dg/other/incomplete1.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.4648.2.77&r2=1.4648.2.78
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.1371.2.17&r2=1.1371.2.18
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.342&r2=1.5084.2.343
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/other/incomplete1.C.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1



-- 


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


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

* [Bug c++/23089] [4.0/4.1 Regression] internal compiler error: in int_mode_for_mode, at stor-layout.c:251 at -O1
  2005-07-27  2:31 [Bug c++/23089] New: internal compiler error: in int_mode_for_mode, at stor-layout.c:251 at -O1 flash at pobox dot com
                   ` (6 preceding siblings ...)
  2005-08-22  8:50 ` cvs-commit at gcc dot gnu dot org
@ 2005-08-22  9:03 ` reichelt at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-08-22  9:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-08-22 08:49 -------
Fixed on mainline and the 4.0 branch.


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


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


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

end of thread, other threads:[~2005-08-22  8:50 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-27  2:31 [Bug c++/23089] New: internal compiler error: in int_mode_for_mode, at stor-layout.c:251 at -O1 flash at pobox dot com
2005-07-27  2:33 ` [Bug c++/23089] " flash at pobox dot com
2005-07-27  2:42 ` [Bug c++/23089] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-07-27  2:44 ` pinskia at gcc dot gnu dot org
2005-07-27  5:27 ` pinskia at gcc dot gnu dot org
2005-08-18 15:26 ` reichelt at gcc dot gnu dot org
2005-08-22  8:48 ` cvs-commit at gcc dot gnu dot org
2005-08-22  8:50 ` cvs-commit at gcc dot gnu dot org
2005-08-22  9:03 ` 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).