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] 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



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


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