* [Bug c++/23426] partial fix too large array problem
2005-08-16 18:44 [Bug c++/23426] New: partial fix too large array problem wilson at gcc dot gnu dot org
@ 2005-08-16 18:47 ` wilson at gcc dot gnu dot org
2005-08-16 18:47 ` wilson at gcc dot gnu dot org
` (8 subsequent siblings)
9 siblings, 0 replies; 18+ messages in thread
From: wilson at gcc dot gnu dot org @ 2005-08-16 18:47 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From wilson at gcc dot gnu dot org 2005-08-16 18:46 -------
Created an attachment (id=9505)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9505&action=view)
Testcase for too large array problem.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23426
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/23426] partial fix too large array problem
2005-08-16 18:44 [Bug c++/23426] New: partial fix too large array problem wilson at gcc dot gnu dot org
2005-08-16 18:47 ` [Bug c++/23426] " wilson at gcc dot gnu dot org
@ 2005-08-16 18:47 ` wilson at gcc dot gnu dot org
2005-08-17 2:43 ` [Bug c++/23426] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
9 siblings, 0 replies; 18+ messages in thread
From: wilson at gcc dot gnu dot org @ 2005-08-16 18:47 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From wilson at gcc dot gnu dot org 2005-08-16 18:45 -------
Created an attachment (id=9504)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9504&action=view)
Patch to partially fix problem with too large arrays.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23426
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/23426] [4.0/4.1 Regression] partial fix too large array problem
2005-08-16 18:44 [Bug c++/23426] New: partial fix too large array problem wilson at gcc dot gnu dot org
2005-08-16 18:47 ` [Bug c++/23426] " wilson at gcc dot gnu dot org
2005-08-16 18:47 ` wilson at gcc dot gnu dot org
@ 2005-08-17 2:43 ` pinskia at gcc dot gnu dot org
2005-08-18 15:59 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
9 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-17 2:43 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-17 02:40 -------
Confirmed. A regression from 3.4.0.
Note there is a typo in the test, USHORT_MAX should be USHRT_MAX.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |ice-on-invalid-code
Last reconfirmed|0000-00-00 00:00:00 |2005-08-17 02:40:11
date| |
Summary|partial fix too large array |[4.0/4.1 Regression] partial
|problem |fix too large array problem
Target Milestone|--- |4.0.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23426
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/23426] [4.0/4.1 Regression] partial fix too large array problem
2005-08-16 18:44 [Bug c++/23426] New: partial fix too large array problem wilson at gcc dot gnu dot org
` (2 preceding siblings ...)
2005-08-17 2:43 ` [Bug c++/23426] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-08-18 15:59 ` pinskia at gcc dot gnu dot org
2005-08-22 5:03 ` mmitchel at gcc dot gnu dot org
` (5 subsequent siblings)
9 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-18 15:59 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-18 15:59 -------
*** Bug 23461 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |pete at void dot printf dot
| |net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23426
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/23426] [4.0/4.1 Regression] partial fix too large array problem
2005-08-16 18:44 [Bug c++/23426] New: partial fix too large array problem wilson at gcc dot gnu dot org
` (3 preceding siblings ...)
2005-08-18 15:59 ` pinskia at gcc dot gnu dot org
@ 2005-08-22 5:03 ` mmitchel at gcc dot gnu dot org
2005-08-23 0:09 ` cvs-commit at gcc dot gnu dot org
` (4 subsequent siblings)
9 siblings, 0 replies; 18+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-08-22 5:03 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2005-08-22 05:03 -------
I think the knock-on error message is a latent bug in the C++ front end, so your
patch is fine.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23426
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/23426] [4.0/4.1 Regression] partial fix too large array problem
2005-08-16 18:44 [Bug c++/23426] New: partial fix too large array problem wilson at gcc dot gnu dot org
` (4 preceding siblings ...)
2005-08-22 5:03 ` mmitchel at gcc dot gnu dot org
@ 2005-08-23 0:09 ` cvs-commit at gcc dot gnu dot org
2005-08-23 0:10 ` cvs-commit at gcc dot gnu dot org
` (3 subsequent siblings)
9 siblings, 0 replies; 18+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-23 0:09 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-08-22 23:56 -------
Subject: Bug 23426
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: wilson@gcc.gnu.org 2005-08-22 23:56:30
Modified files:
gcc/cp : ChangeLog
Log message:
Correct PR number in last patch checked in.
PR tree-optimization/23426
* decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE for
array size check.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4855&r2=1.4856
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23426
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/23426] [4.0/4.1 Regression] partial fix too large array problem
2005-08-16 18:44 [Bug c++/23426] New: partial fix too large array problem wilson at gcc dot gnu dot org
` (5 preceding siblings ...)
2005-08-23 0:09 ` cvs-commit at gcc dot gnu dot org
@ 2005-08-23 0:10 ` cvs-commit at gcc dot gnu dot org
2005-08-23 0:36 ` wilson at gcc dot gnu dot org
` (2 subsequent siblings)
9 siblings, 0 replies; 18+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-23 0:10 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-08-23 00:08 -------
Subject: Bug 23426
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-4_0-branch
Changes by: wilson@gcc.gnu.org 2005-08-23 00:07:48
Modified files:
gcc/cp : ChangeLog decl.c
Log message:
Partial fix for too large array problem.
PR tree-optimization/23426
* decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE for
array size check.
Backport from mainline
2005-06-14 Roger Sayle <roger@eyesopen.com>
* decl.c (grokdeclarator): Only check TREE_OVERFLOW on INTEGER_CST.
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.79&r2=1.4648.2.80
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.18&r2=1.1371.2.19
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23426
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/23426] [4.0/4.1 Regression] partial fix too large array problem
2005-08-16 18:44 [Bug c++/23426] New: partial fix too large array problem wilson at gcc dot gnu dot org
` (6 preceding siblings ...)
2005-08-23 0:10 ` cvs-commit at gcc dot gnu dot org
@ 2005-08-23 0:36 ` wilson at gcc dot gnu dot org
2005-08-23 11:46 ` [Bug c++/23426] [4.0/4.1 Regression] Too large array problem gives two error message pinskia at gcc dot gnu dot org
2005-09-27 15:57 ` mmitchel at gcc dot gnu dot org
9 siblings, 0 replies; 18+ messages in thread
From: wilson at gcc dot gnu dot org @ 2005-08-23 0:36 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From wilson at gcc dot gnu dot org 2005-08-23 00:10 -------
I've added my patch to mainline and the gcc-4.0.x branch, but there is still the
problem that my testcase generates two errors when it should only generate one.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23426
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/23426] [4.0/4.1 Regression] Too large array problem gives two error message
2005-08-16 18:44 [Bug c++/23426] New: partial fix too large array problem wilson at gcc dot gnu dot org
` (7 preceding siblings ...)
2005-08-23 0:36 ` wilson at gcc dot gnu dot org
@ 2005-08-23 11:46 ` pinskia at gcc dot gnu dot org
2005-09-27 15:57 ` mmitchel at gcc dot gnu dot org
9 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-23 11:46 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1491 bytes --]
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-23 11:44 -------
earth:~>gcc t.cc
t.cc: In function int main():
t.cc:19: error: size of array a is too large
t.cc:20: error: a was not declared in this scope
earth:~>~/ia32_linux_gcc3_4/bin/gcc t.cc
t.cc: In function `int main()':
t.cc:19: error: size of variable 'a' is too large
earth:~>gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /home/peshtigo/pinskia/src/gnu/gcc/src/configure --target=i686-pc-linux-gnu --
host=i686-pc-linux-gnu --enable-__cxa_atexit --enable-languages=c++,objc,java,f95 --prefix=/
home/gates/pinskia/linux --enable-threads=posix --enable-shared
Thread model: posix
gcc version 4.1.0 20050823 (experimental)
So the error message is also a regression but that makes this minor as the first error message is
correct.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
Keywords|ice-on-invalid-code |diagnostic
Known to fail| |4.0.0 4.1.0
Known to work| |3.4.0
Summary|[4.0/4.1 Regression] partial|[4.0/4.1 Regression] Too
|fix too large array problem |large array problem gives
| |two error message
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23426
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/23426] [4.0/4.1 Regression] Too large array problem gives two error message
2005-08-16 18:44 [Bug c++/23426] New: partial fix too large array problem wilson at gcc dot gnu dot org
` (8 preceding siblings ...)
2005-08-23 11:46 ` [Bug c++/23426] [4.0/4.1 Regression] Too large array problem gives two error message pinskia at gcc dot gnu dot org
@ 2005-09-27 15:57 ` mmitchel at gcc dot gnu dot org
9 siblings, 0 replies; 18+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-09-27 15:57 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.2 |4.0.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23426
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/23426] [4.0/4.1 Regression] Too large array problem gives two error message
[not found] <bug-23426-338@http.gcc.gnu.org/bugzilla/>
@ 2005-10-27 1:56 ` pinskia at gcc dot gnu dot org
2005-10-27 14:01 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-27 1:56 UTC (permalink / raw)
To: gcc-bugs
------- Comment #12 from pinskia at gcc dot gnu dot org 2005-10-27 01:56 -------
I might have a fix for the two error messages, though it might also cause other
issues, let see what happens in the test results.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23426
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/23426] [4.0/4.1 Regression] Too large array problem gives two error message
[not found] <bug-23426-338@http.gcc.gnu.org/bugzilla/>
2005-10-27 1:56 ` pinskia at gcc dot gnu dot org
@ 2005-10-27 14:01 ` pinskia at gcc dot gnu dot org
2005-10-28 3:57 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-27 14:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #13 from pinskia at gcc dot gnu dot org 2005-10-27 14:01 -------
(In reply to comment #12)
> I might have a fix for the two error messages, though it might also cause other
> issues, let see what happens in the test results.
It did not work.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23426
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/23426] [4.0/4.1 Regression] Too large array problem gives two error message
[not found] <bug-23426-338@http.gcc.gnu.org/bugzilla/>
2005-10-27 1:56 ` pinskia at gcc dot gnu dot org
2005-10-27 14:01 ` pinskia at gcc dot gnu dot org
@ 2005-10-28 3:57 ` pinskia at gcc dot gnu dot org
2005-10-28 4:18 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-28 3:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #14 from pinskia at gcc dot gnu dot org 2005-10-28 03:57 -------
Actually I figured out how to fix the problem with my patch, just moving around
error mark node is what is needed here.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2005-08-17 02:40:11 |2005-10-28 03:57:06
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23426
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/23426] [4.0/4.1 Regression] Too large array problem gives two error message
[not found] <bug-23426-338@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2005-10-28 3:57 ` pinskia at gcc dot gnu dot org
@ 2005-10-28 4:18 ` pinskia at gcc dot gnu dot org
2005-10-28 14:51 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-28 4:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #15 from pinskia at gcc dot gnu dot org 2005-10-28 04:18 -------
Patch posted:
http://gcc.gnu.org/ml/gcc-patches/2005-10/msg01599.html
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
URL| |http://gcc.gnu.org/ml/gcc-
| |patches/2005-
| |10/msg01599.html
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23426
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/23426] [4.0/4.1 Regression] Too large array problem gives two error message
[not found] <bug-23426-338@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2005-10-28 4:18 ` pinskia at gcc dot gnu dot org
@ 2005-10-28 14:51 ` pinskia at gcc dot gnu dot org
2005-10-28 14:57 ` pinskia at gcc dot gnu dot org
2005-10-28 14:58 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-28 14:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #16 from pinskia at gcc dot gnu dot org 2005-10-28 14:50 -------
Subject: Bug 23426
Author: pinskia
Date: Fri Oct 28 14:50:53 2005
New Revision: 105934
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=105934
Log:
2005-10-28 Andrew Pinski <pinskia@physics.uc.edu>
PR C++/23426
* decl.c (start_decl): Check that the decl is an
error_mark_node before getting the type.
Remove the check for the decl's type being an
error_mark_node.
2005-10-28 Andrew Pinski <pinskia@physics.uc.edu>
PR C++/23426
* g++.dg/other/large-size-array.C: New test.
Added:
branches/gcc-4_0-branch/gcc/testsuite/g++.dg/other/large-size-array.C
Modified:
branches/gcc-4_0-branch/gcc/ChangeLog
branches/gcc-4_0-branch/gcc/cp/decl.c
branches/gcc-4_0-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23426
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/23426] [4.0/4.1 Regression] Too large array problem gives two error message
[not found] <bug-23426-338@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2005-10-28 14:51 ` pinskia at gcc dot gnu dot org
@ 2005-10-28 14:57 ` pinskia at gcc dot gnu dot org
2005-10-28 14:58 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-28 14:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #17 from pinskia at gcc dot gnu dot org 2005-10-28 14:57 -------
Subject: Bug 23426
Author: pinskia
Date: Fri Oct 28 14:57:30 2005
New Revision: 105936
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=105936
Log:
2005-10-28 Andrew Pinski <pinskia@physics.uc.edu>
PR C++/23426
* decl.c (start_decl): Check that the decl is an
error_mark_node before getting the type.
Remove the check for the decl's type being an
error_mark_node.
2005-10-28 Andrew Pinski <pinskia@physics.uc.edu>
PR C++/23426
* g++.dg/other/large-size-array.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/other/large-size-array.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23426
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/23426] [4.0/4.1 Regression] Too large array problem gives two error message
[not found] <bug-23426-338@http.gcc.gnu.org/bugzilla/>
` (5 preceding siblings ...)
2005-10-28 14:57 ` pinskia at gcc dot gnu dot org
@ 2005-10-28 14:58 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-28 14:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #18 from pinskia at gcc dot gnu dot org 2005-10-28 14:57 -------
Fixed in 4.0.3.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23426
^ permalink raw reply [flat|nested] 18+ messages in thread