[Bug ada/36785] Segmentation fault in Gnat.Regexp
baldrick at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Feb 17 13:36:00 GMT 2009
------- Comment #2 from baldrick at gcc dot gnu dot org 2009-02-17 13:36 -------
If I unsupress checks in System.Regexp.Compile.Create_Secondary_Table,
then I get
"raised CONSTRAINT_ERROR : s-regexp.adb:1161 index check failed"
here:
1160 for Column in 0 .. Alphabet_Size loop
1161 Meta_States (Nb_State + 1) := (others => False); -- Here
1162 Temp_State_Not_Null := False;
The reason is that Nb_State + 1 is beyond Meta_States'Last.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36785
More information about the Gcc-bugs
mailing list