This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/12207] New: 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

           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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]