public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/27384]  New: [4.0/4.1/4.2 regression] ICE with invalid array size
@ 2006-05-02 11:53 reichelt at gcc dot gnu dot org
  2006-05-02 15:31 ` [Bug c++/27384] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-05-02 11:53 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet causes an ICE since GCC 4.0.3:

===================================
struct A
{
    static const int i = j;
    int x[i];
};
===================================

bug.cc:3: error: 'j' was not declared in this scope
bug.cc:4: internal compiler error: in size_binop, at fold-const.c:1736
Please submit a full bug report, [etc.]


-- 
           Summary: [4.0/4.1/4.2 regression] ICE with invalid array size
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

* [Bug c++/27384] [4.0/4.1/4.2 regression] ICE with invalid array size
  2006-05-02 11:53 [Bug c++/27384] New: [4.0/4.1/4.2 regression] ICE with invalid array size reichelt at gcc dot gnu dot org
@ 2006-05-02 15:31 ` pinskia at gcc dot gnu dot org
  2006-05-10 16:55 ` reichelt at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-05-02 15:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-05-02 15:31 -------
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-05-02 15:31:24
               date|                            |
   Target Milestone|---                         |4.0.4


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


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

* [Bug c++/27384] [4.0/4.1/4.2 regression] ICE with invalid array size
  2006-05-02 11:53 [Bug c++/27384] New: [4.0/4.1/4.2 regression] ICE with invalid array size reichelt at gcc dot gnu dot org
  2006-05-02 15:31 ` [Bug c++/27384] " pinskia at gcc dot gnu dot org
@ 2006-05-10 16:55 ` reichelt at gcc dot gnu dot org
  2006-05-11  7:15 ` patchapp at dberlin dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-05-10 16:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from reichelt at gcc dot gnu dot org  2006-05-10 16:55 -------
Testing a patch.


-- 

reichelt at gcc dot gnu dot org changed:

           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=27384


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

* [Bug c++/27384] [4.0/4.1/4.2 regression] ICE with invalid array size
  2006-05-02 11:53 [Bug c++/27384] New: [4.0/4.1/4.2 regression] ICE with invalid array size reichelt at gcc dot gnu dot org
  2006-05-02 15:31 ` [Bug c++/27384] " pinskia at gcc dot gnu dot org
  2006-05-10 16:55 ` reichelt at gcc dot gnu dot org
@ 2006-05-11  7:15 ` patchapp at dberlin dot org
  2006-05-11 15:08 ` reichelt at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: patchapp at dberlin dot org @ 2006-05-11  7:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from patchapp at dberlin dot org  2006-05-11 07:15 -------
Subject: Bug number PR27384

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-05/msg00443.html


-- 


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


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

* [Bug c++/27384] [4.0/4.1/4.2 regression] ICE with invalid array size
  2006-05-02 11:53 [Bug c++/27384] New: [4.0/4.1/4.2 regression] ICE with invalid array size reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-05-11  7:15 ` patchapp at dberlin dot org
@ 2006-05-11 15:08 ` reichelt at gcc dot gnu dot org
  2006-05-11 15:12 ` reichelt at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-05-11 15:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from reichelt at gcc dot gnu dot org  2006-05-11 15:08 -------
Subject: Bug 27384

Author: reichelt
Date: Thu May 11 15:07:45 2006
New Revision: 113701

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113701
Log:
        PR middle-end/27384
        * fold-const.c (size_binop): Move sanity check for arguments to
        the beginning of the function.

        * g++.dg/other/fold1.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/other/fold1.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/27384] [4.0/4.1/4.2 regression] ICE with invalid array size
  2006-05-02 11:53 [Bug c++/27384] New: [4.0/4.1/4.2 regression] ICE with invalid array size reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-05-11 15:08 ` reichelt at gcc dot gnu dot org
@ 2006-05-11 15:12 ` reichelt at gcc dot gnu dot org
  2006-05-11 15:17 ` reichelt 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 @ 2006-05-11 15:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from reichelt at gcc dot gnu dot org  2006-05-11 15:12 -------
Subject: Bug 27384

Author: reichelt
Date: Thu May 11 15:11:50 2006
New Revision: 113702

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113702
Log:
        PR middle-end/27384
        * fold-const.c (size_binop): Move sanity check for arguments to
        the beginning of the function.

        * g++.dg/other/fold1.C: New test.

Added:
    branches/gcc-4_1-branch/gcc/testsuite/g++.dg/other/fold1.C
Modified:
    branches/gcc-4_1-branch/gcc/ChangeLog
    branches/gcc-4_1-branch/gcc/fold-const.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/27384] [4.0/4.1/4.2 regression] ICE with invalid array size
  2006-05-02 11:53 [Bug c++/27384] New: [4.0/4.1/4.2 regression] ICE with invalid array size reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2006-05-11 15:12 ` reichelt at gcc dot gnu dot org
@ 2006-05-11 15:17 ` reichelt at gcc dot gnu dot org
  2006-05-11 15:18 ` reichelt at gcc dot gnu dot org
  2006-05-15 19:40 ` patchapp at dberlin dot org
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-05-11 15:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from reichelt at gcc dot gnu dot org  2006-05-11 15:17 -------
Subject: Bug 27384

Author: reichelt
Date: Thu May 11 15:16:49 2006
New Revision: 113703

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113703
Log:
        PR middle-end/27384
        * fold-const.c (size_binop): Move sanity check for arguments to
        the beginning of the function.

        * g++.dg/other/fold1.C: New test.

Added:
    branches/gcc-4_0-branch/gcc/testsuite/g++.dg/other/fold1.C
Modified:
    branches/gcc-4_0-branch/gcc/ChangeLog
    branches/gcc-4_0-branch/gcc/fold-const.c
    branches/gcc-4_0-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/27384] [4.0/4.1/4.2 regression] ICE with invalid array size
  2006-05-02 11:53 [Bug c++/27384] New: [4.0/4.1/4.2 regression] ICE with invalid array size reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2006-05-11 15:17 ` reichelt at gcc dot gnu dot org
@ 2006-05-11 15:18 ` reichelt at gcc dot gnu dot org
  2006-05-15 19:40 ` patchapp at dberlin dot org
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-05-11 15:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from reichelt at gcc dot gnu dot org  2006-05-11 15:17 -------
Fixed on mainline, 4.1 branch, and 4.0 branch.


-- 

reichelt at gcc dot gnu dot org changed:

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


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


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

* [Bug c++/27384] [4.0/4.1/4.2 regression] ICE with invalid array size
  2006-05-02 11:53 [Bug c++/27384] New: [4.0/4.1/4.2 regression] ICE with invalid array size reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2006-05-11 15:18 ` reichelt at gcc dot gnu dot org
@ 2006-05-15 19:40 ` patchapp at dberlin dot org
  7 siblings, 0 replies; 9+ messages in thread
From: patchapp at dberlin dot org @ 2006-05-15 19:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from patchapp at dberlin dot org  2006-05-15 19:40 -------
Subject: Bug number PR27384

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-05/msg00443.html


-- 


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


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

end of thread, other threads:[~2006-05-15 19:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-02 11:53 [Bug c++/27384] New: [4.0/4.1/4.2 regression] ICE with invalid array size reichelt at gcc dot gnu dot org
2006-05-02 15:31 ` [Bug c++/27384] " pinskia at gcc dot gnu dot org
2006-05-10 16:55 ` reichelt at gcc dot gnu dot org
2006-05-11  7:15 ` patchapp at dberlin dot org
2006-05-11 15:08 ` reichelt at gcc dot gnu dot org
2006-05-11 15:12 ` reichelt at gcc dot gnu dot org
2006-05-11 15:17 ` reichelt at gcc dot gnu dot org
2006-05-11 15:18 ` reichelt at gcc dot gnu dot org
2006-05-15 19:40 ` patchapp at dberlin 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).