public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/12207] New: Internal compiler error in size_binop, at fold-const.c:2014
@ 2003-09-08 13:41 andrewk at brass dot com
  2003-09-08 14:10 ` [Bug c/12207] " pinskia at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: andrewk at brass dot com @ 2003-09-08 13:41 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

           Summary: Internal compiler error in size_binop, at fold-
                    const.c:2014
           Product: gcc
           Version: 3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: andrewk at brass dot com
                CC: gcc-bugs at gcc dot gnu dot org

Version info:
 gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as 
--with-ld=/usr/ccs/bin/ld --disable-nls
Thread model: posix
gcc version 3.2

Also fails with
  gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)

Here are the .i contents - brief, so you get contents instead of attachment
# 1 "/ioi/users/andrewk/BP74/2.4/lib/brassii/test/test_ustring.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "/ioi/users/andrewk/BP74/2.4/lib/brassii/test/test_ustring.c"
# 11 "/ioi/users/andrewk/BP74/2.4/lib/brassii/test/test_ustring.c"
const int PRICE_SIZE = 15;

int main () {
  char validPriceStr[][PRICE_SIZE] = {
  "111111", "0.123456", "999999", "3 1/2", "4 7/256",
  "5/8", "1 2/3", "0.00000000001", "12.12  ", "5 3 /8",
  "6.9999999999"
  };
# 56 "/ioi/users/andrewk/BP74/2.4/lib/brassii/test/test_ustring.c"
  return 1;
}

Compiler output:
/ioi/users/andrewk/BP74/2.4/lib/brassii/test/test_ustring.c: In function `main':
/ioi/users/andrewk/BP74/2.4/lib/brassii/test/test_ustring.c:18: Internal 
compiler error in size_binop, at fold-const.c:2014
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

Changing PRICE_SIZE to a #define works around this bug.


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

end of thread, other threads:[~2004-08-18 12:16 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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
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
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

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).