From: Simon Wright <simon@pushface.org>
Subject: Re: Compiler checking of String lengths during assignment (Newbie Question)
Date: Sat, 10 Jan 2015 10:54:30 +0000
Date: 2015-01-10T10:54:30+00:00 [thread overview]
Message-ID: <lyk30uhpnd.fsf@pushface.org> (raw)
In-Reply-To: 77d434cc-00bc-4a2f-b50e-40736abdd2b2@googlegroups.com
I just ran this and got warnings on all 3 lines, with GNAT GPL 2014, GCC
4.9.1, GCC 5.0 (experimental).
isaac1.adb:8:12: warning: wrong length for array of subtype of "Standard.String" defined at line 2
isaac1.adb:8:12: warning: "Constraint_Error" will be raised at run time
isaac1.adb:9:12: warning: too few elements for subtype of "Standard.String" defined at line 2
isaac1.adb:9:12: warning: "Constraint_Error" will be raised at run time
isaac1.adb:10:12: warning: too few elements for subtype of "Standard.String" defined at line 2
isaac1.adb:10:12: warning: "Constraint_Error" will be raised at run time
next prev parent reply other threads:[~2015-01-10 10:54 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-09 22:50 Compiler checking of String lengths during assignment (Newbie Question) isaac1.0
2015-01-09 23:10 ` Simon Wright
2015-01-09 23:20 ` Stefan.Lucks
2015-01-10 12:43 ` Brian Drummond
2015-01-09 23:53 ` Shark8
2015-01-10 0:18 ` Jeffrey Carter
2015-01-10 1:48 ` Adam Beneschan
2015-01-10 10:03 ` Pascal Obry
2015-01-10 10:54 ` Simon Wright [this message]
2015-01-15 20:44 ` isaac1.0
2015-01-15 21:18 ` Simon Wright
2015-01-15 22:30 ` Jeffrey Carter
2015-01-15 22:32 ` Jeffrey Carter
2015-01-16 7:28 ` Simon Wright
2015-01-16 15:44 ` Jeffrey Carter
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox