public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [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; 9+ 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] 9+ 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 ` [Bug c++/23426] [4.0/4.1 Regression] Too large array problem gives two error message 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; 9+ 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] 9+ 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 ` [Bug c++/23426] [4.0/4.1 Regression] Too large array problem gives two error message 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; 9+ 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] 9+ 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; 9+ 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] 9+ 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; 9+ 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] 9+ 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; 9+ 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] 9+ 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; 9+ 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] 9+ messages in thread
* [Bug c++/23426] New: partial fix too large array problem
@ 2005-08-16 18:44 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
0 siblings, 2 replies; 9+ messages in thread
From: wilson at gcc dot gnu dot org @ 2005-08-16 18:44 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1529 bytes --]
A testcase that has an array larger than half the address space and smaller than
the address space will trigger an abort in tree_int_cst_low.
The problem here is that we have a TREE_OVERFLOW (TYPE_SIZE (...)) check in the
C++ front end. This no longer works now that TYPE_SIZE is computed as
bitsizetype which has extra precision. We must use TYPE_SIZE_UNIT instead.
This is trivial to fix, but now the testcase gets two errors instead of the
expected one error. I don't know if this is intended behaviour, or whether this
is a latent bug in the C++ front end. Either way, my testcase doesn't work for
the testsuite because of this problem, so a C++ front end maintainer will have
to decide what to do.
Result without the patch
large-size-array.cc: In function int main():
large-size-array.cc:17: internal compiler error: in tree_low_cst, at tree.c:4270
Result with the patch
large-size-array.cc: In function int main():
large-size-array.cc:19: error: size of array a is too large
large-size-array.cc:20: error: a was not declared in this scope
Both of these results are wrong.
--
Summary: partial fix too large array problem
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: wilson at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23426
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2005-10-28 14:58 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-23426-338@http.gcc.gnu.org/bugzilla/>
2005-10-27 1:56 ` [Bug c++/23426] [4.0/4.1 Regression] Too large array problem gives two error message 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
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
2005-08-16 18:44 [Bug c++/23426] New: partial fix too large array problem 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
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).