title: Ada : custom type in range 1..var?
body: <p>I'm a very beginner of Ada code. I use GPS from AdaCore.</p>
  
  <p>I would create a variable sized by the user.
  I write this :</p>
  
  <pre><code>-- My ada program --
  with Ada.Text_IO, Ada.Integer_Text_IO;
  use Ada.Text_IO, Ada.Integer_Text_IO;
  
  procedure main is
     wanted : Integer := 10;
  
     type custom is range 0..wanted;
  ...
  </code></pre>
  
  <p>But something went wrong in line 8 :</p>
  
  <pre><code>Builder results
      C:\Users\**********\Desktop\ada project\src\main.adb
          8:26 "wanted" is not static constant or named number (RM 4.9(5))
          8:26 non-static expression used for integer type bound
  </code></pre>
  
  <p>I really don't understand what this mean... Can someone help me ?</p>