* [Bug c/12207] Internal compiler error in size_binop, at fold-const.c:2014
2003-09-08 13:41 [Bug c/12207] New: Internal compiler error in size_binop, at fold-const.c:2014 andrewk at brass dot com
@ 2003-09-08 14:10 ` pinskia at gcc dot gnu dot org
2003-09-08 14:37 ` Andrew dot Krassowski at brass dot com
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-09-08 14:10 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12207
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |10089
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |ice-on-valid-code
Last reconfirmed|0000-00-00 00:00:00 |2003-09-08 14:10:19
date| |
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-09-08 14:10 -------
Related to bug 10089.
Confirmed on the mainline (20030907).
Reduced a little more:
const int PRICE_SIZE = 15;
int main () {
char validPriceStr[][PRICE_SIZE] = {" "
};
return 1;
}
This is not a regression, just like 10089.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/12207] Internal compiler error in size_binop, at fold-const.c:2014
2003-09-08 13:41 [Bug c/12207] New: Internal compiler error in size_binop, at fold-const.c:2014 andrewk at brass dot com
2003-09-08 14:10 ` [Bug c/12207] " pinskia at gcc dot gnu dot org
@ 2003-09-08 14:37 ` Andrew dot Krassowski at brass dot com
2003-09-08 14:44 ` pinskia at gcc dot gnu dot org
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: Andrew dot Krassowski at brass dot com @ 2003-09-08 14:37 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12207
------- Additional Comments From Andrew dot Krassowski at brass dot com 2003-09-08 14:37 -------
Subject: RE: Internal compiler error in size_binop, at fold-const.c:2014
Wow - quick response!
Sorry - when I searched "summary" for "internal compiler error"
I got no results, so I thought this was brand-spanking new.
My construct, using
const int XX_SIZE = 15;
is a real-world usage, resulting from a coding standard directive to
upgrade #define's to const int's.
I'm not sure that a non-const variable
should be allowed to declare array sizes.
Thanks and keep up the great work!
Andy
-----Original Message-----
From: pinskia at gcc dot gnu dot org [mailto:gcc-bugzilla@gcc.gnu.org]
Sent: Monday, September 08, 2003 10:10 AM
To: Krassowski, Andrew
Subject: [Bug c/12207] Internal compiler error in size_binop, at
fold-const.c:2014
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT*
gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12207
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
------------------------------------------------------------------------
----
BugsThisDependsOn| |10089
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |ice-on-valid-code
Last reconfirmed|0000-00-00 00:00:00 |2003-09-08 14:10:19
date| |
------- Additional Comments From pinskia at gcc dot gnu dot org
2003-09-08 14:10 -------
Related to bug 10089.
Confirmed on the mainline (20030907).
Reduced a little more:
const int PRICE_SIZE = 15;
int main () {
char validPriceStr[][PRICE_SIZE] = {" "
};
return 1;
}
This is not a regression, just like 10089.
------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/12207] Internal compiler error in size_binop, at fold-const.c:2014
2003-09-08 13:41 [Bug c/12207] New: Internal compiler error in size_binop, at fold-const.c:2014 andrewk at brass dot com
2003-09-08 14:10 ` [Bug c/12207] " pinskia at gcc dot gnu dot org
2003-09-08 14:37 ` Andrew dot Krassowski at brass dot com
@ 2003-09-08 14:44 ` pinskia at gcc dot gnu dot org
2003-10-02 19:21 ` denis at rouleau dot com
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-09-08 14:44 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12207
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-09-08 14:44 -------
Actually it is allowed by the C99 standard (this is really a GCC extension from ways back and was
incorporated into the standard for ANSI/ISO C99).
The best way to search for related bugs is to search for where they die in this case, size_binop
and not just "internal error".
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/12207] Internal compiler error in size_binop, at fold-const.c:2014
2003-09-08 13:41 [Bug c/12207] New: Internal compiler error in size_binop, at fold-const.c:2014 andrewk at brass dot com
` (2 preceding siblings ...)
2003-09-08 14:44 ` pinskia at gcc dot gnu dot org
@ 2003-10-02 19:21 ` denis at rouleau dot com
2004-02-06 3:22 ` grothoff at cs dot purdue dot edu
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: denis at rouleau dot com @ 2003-10-02 19:21 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12207
------- Additional Comments From denis at rouleau dot com 2003-10-02 19:21 -------
I'm encountering the same bug but without apparent non-constant in array
definition. Perhaps this will help getting a patch.
Compiling an ECOS file (i386 target)
.i file attached
Command line
------------
i386-elf-gcc -c -I/ecos-f/cygwin/home/Denis/ecos_dev/1stredboot_install/include
-I/opt/ecos/ecos-2.0/packages/hal/i386/arch/v2_0
-I/opt/ecos/ecos-2.0/packages/hal/i386/arch/v2_0/src
-I/opt/ecos/ecos-2.0/packages/hal/i386/arch/v2_0/tests -I.
-I/opt/ecos/ecos-2.0/packages/hal/i386/arch/v2_0/src/ -Wall -Wpointer-arith
-Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc
-finit-priority -save-temps -Wp,-MD,src/hal_misc.tmp -o
src/hal_i386_arch_hal_misc.o
/opt/ecos/ecos-2.0/packages/hal/i386/arch/v2_0/src/hal_misc.c
cc1: Internal compiler error in size_binop, at fold-const.c:2014
gcc version
------------
i386-elf-gcc -c -I/ecos-f/cygwin/home/Denis/ecos_dev/1stredboot_install/include
-I/opt/ecos/ecos-2.0/packages/hal/i386/arch/v2_0
-I/opt/ecos/ecos-2.0/packages/hal/i386/arch/v2_0/src
-I/opt/ecos/ecos-2.0/packages/hal/i386/arch/v2_0/tests -I.
-I/opt/ecos/ecos-2.0/packages/hal/i386/arch/v2_0/src/ -Wall -Wpointer-arith
-Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc
-finit-priority -save-temps -Wp,-MD,src/hal_misc.tmp -o
src/hal_i386_arch_hal_misc.o
/opt/ecos/ecos-2.0/packages/hal/i386/arch/v2_0/src/hal_misc.c
cc1: Internal compiler error in size_binop, at fold-const.c:2014
system
------
Pentium 4, Windows 98, cygwin 3.3.1
[discalimer] first gcc bug report. I read the instructions and I hope I haven't
missed anything;-)
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/12207] Internal compiler error in size_binop, at fold-const.c:2014
2003-09-08 13:41 [Bug c/12207] New: Internal compiler error in size_binop, at fold-const.c:2014 andrewk at brass dot com
` (3 preceding siblings ...)
2003-10-02 19:21 ` denis at rouleau dot com
@ 2004-02-06 3:22 ` grothoff at cs dot purdue dot edu
2004-05-06 13:01 ` reichelt at gcc dot gnu dot org
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: grothoff at cs dot purdue dot edu @ 2004-02-06 3:22 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From grothoff at cs dot purdue dot edu 2004-02-06 03:22 -------
I get the "same" ICE doing something quite different.
I was using gcj (gcc (GCC) 3.3.3 20040125 (prerelease) (Debian)). I get the message
compiling a rather trivial method without any arrays (I've shortened the package names):
Method public accept(Interpreter ) -> void
0 aload_1
1 aload_0
2 invokevirtual #5 <Method Interpreter.visit_FLOAD (LFLOAD;)V>
5 return
GCC output:
FLOAD.java: In class `FLOAD':
FLOAD.java: In method `accept(Interpreter)':
FLOAD.java:0: Internal compiler error in size_binop, at fold-const.c:2017
Please submit a full bug report,
with preprocessed source if appropriate.
If someone wants the code to reproduce this problem, don't hesitate to contact me.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12207
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/12207] Internal compiler error in size_binop, at fold-const.c:2014
2003-09-08 13:41 [Bug c/12207] New: Internal compiler error in size_binop, at fold-const.c:2014 andrewk at brass dot com
` (4 preceding siblings ...)
2004-02-06 3:22 ` grothoff at cs dot purdue dot edu
@ 2004-05-06 13:01 ` reichelt at gcc dot gnu dot org
2004-05-06 14:23 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-05-06 13:01 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-05-06 13:01 -------
Andrew's testcase cfrom comment #1 now compiles on tree-ssa.
Fixed by Richard's patch
http://gcc.gnu.org/ml/gcc-cvs/2004-05/msg00129.html
--
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |3.3.4 3.4.0 3.5.0
Known to work| |tree-ssa
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12207
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/12207] Internal compiler error in size_binop, at fold-const.c:2014
2003-09-08 13:41 [Bug c/12207] New: Internal compiler error in size_binop, at fold-const.c:2014 andrewk at brass dot com
` (5 preceding siblings ...)
2004-05-06 13:01 ` reichelt at gcc dot gnu dot org
@ 2004-05-06 14:23 ` pinskia at gcc dot gnu dot org
2004-05-13 21:58 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-06 14:23 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-06 14:23 -------
Suspending as fixed for the tree-ssa.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |SUSPENDED
Target Milestone|--- |tree-ssa
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12207
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/12207] Internal compiler error in size_binop, at fold-const.c:2014
2003-09-08 13:41 [Bug c/12207] New: Internal compiler error in size_binop, at fold-const.c:2014 andrewk at brass dot com
` (6 preceding siblings ...)
2004-05-06 14:23 ` pinskia at gcc dot gnu dot org
@ 2004-05-13 21:58 ` pinskia at gcc dot gnu dot org
2004-05-13 21:59 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-13 21:58 UTC (permalink / raw)
To: gcc-bugs
--
Bug 12207 depends on bug 10089, which changed state.
Bug 10089 Summary: ICE in size_binop on initialization of variable-length array
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10089
What |Old Value |New Value
----------------------------------------------------------------------------
Status|SUSPENDED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12207
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/12207] Internal compiler error in size_binop, at fold-const.c:2014
2003-09-08 13:41 [Bug c/12207] New: Internal compiler error in size_binop, at fold-const.c:2014 andrewk at brass dot com
` (7 preceding siblings ...)
2004-05-13 21:58 ` pinskia at gcc dot gnu dot org
@ 2004-05-13 21:59 ` pinskia at gcc dot gnu dot org
2004-08-18 12:13 ` reichelt at gcc dot gnu dot org
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-13 21:59 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-13 11:52 -------
Fixed for 3.5.0 by the merge of the tree-ssa.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|SUSPENDED |RESOLVED
Resolution| |FIXED
Target Milestone|tree-ssa |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12207
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/12207] Internal compiler error in size_binop, at fold-const.c:2014
2003-09-08 13:41 [Bug c/12207] New: Internal compiler error in size_binop, at fold-const.c:2014 andrewk at brass dot com
` (8 preceding siblings ...)
2004-05-13 21:59 ` pinskia at gcc dot gnu dot org
@ 2004-08-18 12:13 ` reichelt at gcc dot gnu dot org
2004-08-18 12:13 ` reichelt at gcc dot gnu dot org
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-08-18 12:13 UTC (permalink / raw)
To: gcc-bugs
--
Bug 12207 depends on bug 10089, which changed state.
Bug 10089 Summary: ICE in size_binop on initialization of variable-length array
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10089
What |Old Value |New Value
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12207
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/12207] Internal compiler error in size_binop, at fold-const.c:2014
2003-09-08 13:41 [Bug c/12207] New: Internal compiler error in size_binop, at fold-const.c:2014 andrewk at brass dot com
` (9 preceding siblings ...)
2004-08-18 12:13 ` reichelt at gcc dot gnu dot org
@ 2004-08-18 12:13 ` reichelt at gcc dot gnu dot org
2004-08-18 12:15 ` reichelt at gcc dot gnu dot org
2004-08-18 12:16 ` reichelt at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-08-18 12:13 UTC (permalink / raw)
To: gcc-bugs
--
Bug 12207 depends on bug 10089, which changed state.
Bug 10089 Summary: ICE in size_binop on initialization of variable-length array
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10089
What |Old Value |New Value
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12207
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/12207] Internal compiler error in size_binop, at fold-const.c:2014
2003-09-08 13:41 [Bug c/12207] New: Internal compiler error in size_binop, at fold-const.c:2014 andrewk at brass dot com
` (10 preceding siblings ...)
2004-08-18 12:13 ` reichelt at gcc dot gnu dot org
@ 2004-08-18 12:15 ` reichelt at gcc dot gnu dot org
2004-08-18 12:16 ` reichelt at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-08-18 12:15 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-08-18 12:15 -------
The bug reappeared.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12207
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/12207] Internal compiler error in size_binop, at fold-const.c:2014
2003-09-08 13:41 [Bug c/12207] New: Internal compiler error in size_binop, at fold-const.c:2014 andrewk at brass dot com
` (11 preceding siblings ...)
2004-08-18 12:15 ` reichelt at gcc dot gnu dot org
@ 2004-08-18 12:16 ` reichelt at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-08-18 12:16 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-08-18 12:16 -------
It is now tracked in PR 16409.
*** This bug has been marked as a duplicate of 16409 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12207
^ permalink raw reply [flat|nested] 14+ messages in thread