public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/26306]  New: Use of volatile array with bounds determined at run time.
@ 2006-02-15 16:39 ben dot midgley at ultra-datel dot com
  2006-02-15 16:52 ` [Bug ada/26306] " charlet at gcc dot gnu dot org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: ben dot midgley at ultra-datel dot com @ 2006-02-15 16:39 UTC (permalink / raw)
  To: gcc-bugs

I have included the configure, and build command below. 

This seems really easy to reproduce, 
create and array of integer values (I am unsure if integer is significant)  
the upper bound of which is determined by a function call
declare the array as volatile

+===========================GNAT BUG DETECTED==============================+
| 4.0.2 (i686-pc-cygwin) in tree_low_cst, at tree.c:3850                   |
| Error detected at mfd_transmitter.2.ada:540:9                            |
| Please submit a bug report; see http://gcc.gnu.org/bugs.html.            |
| Include the entire contents of this bug box in the report.               |
| Include the exact gcc or gnatmake command that you entered.              |
| Also include sources listed below in gnatchop format                     |
| (concatenated together with no headers between files).                   |
+==========================================================================+ 

This error can be avoided by using a fixed size array or removing the volatile
from the array. 


gcc -c -g -fstack-check -gnata -gnato -gnatE -gnatf -I- -gnatA -x ada
project_top.adb

$ gcc -v
Using built-in specs.
Target: i686-pc-cygwin
Configured with: ../gcc-4.0.2/configure --enable-languages=ada
--disable-win32-registry
Thread model: single
gcc version 4.0.2


-- 
           Summary: Use of volatile array with bounds determined at run
                    time.
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ben dot midgley at ultra-datel dot com
 GCC build triplet: included in description
  GCC host triplet: included in description
GCC target triplet: included in description


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26306


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

end of thread, other threads:[~2006-12-01  2:06 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-15 16:39 [Bug ada/26306] New: Use of volatile array with bounds determined at run time ben dot midgley at ultra-datel dot com
2006-02-15 16:52 ` [Bug ada/26306] " charlet at gcc dot gnu dot org
2006-02-15 17:56 ` ben dot midgley at ultra-datel dot com
2006-02-15 18:05 ` charlet at gcc dot gnu dot org
2006-10-20 16:56 ` jeff at thecreems dot com
2006-11-01 19:39 ` charlet at gcc dot gnu dot org
2006-11-01 20:04 ` ebotcazou at gcc dot gnu dot org
2006-11-05 13:02 ` [Bug ada/26306] [4.0/4.1/4.2/4.3 regression] ICE volatile array with non-constant bounds ebotcazou at gcc dot gnu dot org
2006-11-05 13:03 ` ebotcazou at gcc dot gnu dot org
2006-11-05 20:40 ` [Bug middle-end/26306] [4.0/4.1/4.2/4.3 regression] ICE on " patchapp at dberlin dot org
2006-11-16 21:25 ` ebotcazou at gcc dot gnu dot org
2006-11-16 21:27 ` ebotcazou at gcc dot gnu dot org
2006-11-16 21:30 ` ebotcazou at gcc dot gnu dot org
2006-11-16 21:34 ` [Bug middle-end/26306] [4.0 " ebotcazou at gcc dot gnu dot org
2006-12-01  2:06 ` chaoyingfu 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).